@deck.gl/widgets 9.0.0-beta.10 → 9.0.0-beta.11

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.
@@ -29,13 +29,13 @@ export declare class CompassWidget implements Widget<CompassWidgetProps> {
29
29
  placement: WidgetPlacement;
30
30
  viewId?: string | null;
31
31
  viewport?: Viewport;
32
- deck?: Deck;
32
+ deck?: Deck<any>;
33
33
  element?: HTMLDivElement;
34
34
  constructor(props: CompassWidgetProps);
35
35
  setProps(props: Partial<CompassWidgetProps>): void;
36
36
  onViewportChange(viewport: any): void;
37
37
  onAdd({ deck }: {
38
- deck: Deck;
38
+ deck: Deck<any>;
39
39
  }): HTMLDivElement;
40
40
  getRotation(): number[];
41
41
  update(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"compass-widget.d.ts","sourceRoot":"","sources":["../src/compass-widget.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,eAAe,EAAC,MAAM,eAAe,CAAC;AAG3E,UAAU,kBAAkB;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACrC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,aAAc,YAAW,MAAM,CAAC,kBAAkB,CAAC;IAC9D,EAAE,SAAa;IACf,KAAK,EAAE,kBAAkB,CAAC;IAC1B,SAAS,EAAE,eAAe,CAAc;IACxC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC9B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,OAAO,CAAC,EAAE,cAAc,CAAC;gBAEb,KAAK,EAAE,kBAAkB;IAUrC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,kBAAkB,CAAC;IAI3C,gBAAgB,CAAC,QAAQ,KAAA;IAKzB,KAAK,CAAC,EAAC,IAAI,EAAC,EAAE;QAAC,IAAI,EAAE,IAAI,CAAA;KAAC,GAAG,cAAc;IAc3C,WAAW;IASX,MAAM;IAgCN,QAAQ;IAKR,kBAAkB;CAcnB"}
1
+ {"version":3,"file":"compass-widget.d.ts","sourceRoot":"","sources":["../src/compass-widget.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,eAAe,EAAC,MAAM,eAAe,CAAC;AAG3E,UAAU,kBAAkB;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACrC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,aAAc,YAAW,MAAM,CAAC,kBAAkB,CAAC;IAC9D,EAAE,SAAa;IACf,KAAK,EAAE,kBAAkB,CAAC;IAC1B,SAAS,EAAE,eAAe,CAAc;IACxC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC9B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,IAAI,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IACjB,OAAO,CAAC,EAAE,cAAc,CAAC;gBAEb,KAAK,EAAE,kBAAkB;IAUrC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,kBAAkB,CAAC;IAI3C,gBAAgB,CAAC,QAAQ,KAAA;IAKzB,KAAK,CAAC,EAAC,IAAI,EAAC,EAAE;QAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAA;KAAC,GAAG,cAAc;IAchD,WAAW;IASX,MAAM;IAgCN,QAAQ;IAKR,kBAAkB;CAcnB"}
package/dist/dist.dev.js CHANGED
@@ -82,315 +82,332 @@ var __exports__ = (() => {
82
82
  var a = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
83
83
  var h = Array.isArray;
84
84
  function v(n2, l2) {
85
- for (var u2 in l2)
86
- n2[u2] = l2[u2];
85
+ for (var u3 in l2)
86
+ n2[u3] = l2[u3];
87
87
  return n2;
88
88
  }
89
89
  function p(n2) {
90
90
  var l2 = n2.parentNode;
91
91
  l2 && l2.removeChild(n2);
92
92
  }
93
- function y(l2, u2, t2) {
94
- var i2, o3, r2, f2 = {};
95
- for (r2 in u2)
96
- "key" == r2 ? i2 = u2[r2] : "ref" == r2 ? o3 = u2[r2] : f2[r2] = u2[r2];
97
- if (arguments.length > 2 && (f2.children = arguments.length > 3 ? n.call(arguments, 2) : t2), "function" == typeof l2 && null != l2.defaultProps)
93
+ function y(l2, u3, t2) {
94
+ var i3, o2, r2, f3 = {};
95
+ for (r2 in u3)
96
+ "key" == r2 ? i3 = u3[r2] : "ref" == r2 ? o2 = u3[r2] : f3[r2] = u3[r2];
97
+ if (arguments.length > 2 && (f3.children = arguments.length > 3 ? n.call(arguments, 2) : t2), "function" == typeof l2 && null != l2.defaultProps)
98
98
  for (r2 in l2.defaultProps)
99
- void 0 === f2[r2] && (f2[r2] = l2.defaultProps[r2]);
100
- return d(l2, f2, i2, o3, null);
99
+ void 0 === f3[r2] && (f3[r2] = l2.defaultProps[r2]);
100
+ return d(l2, f3, i3, o2, null);
101
101
  }
102
- function d(n2, t2, i2, o3, r2) {
103
- var f2 = { type: n2, props: t2, key: i2, ref: o3, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: null == r2 ? ++u : r2 };
104
- return null == r2 && null != l.vnode && l.vnode(f2), f2;
102
+ function d(n2, t2, i3, o2, r2) {
103
+ var f3 = { type: n2, props: t2, key: i3, ref: o2, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: null == r2 ? ++u : r2, __i: -1, __u: 0 };
104
+ return null == r2 && null != l.vnode && l.vnode(f3), f3;
105
105
  }
106
- function k(n2) {
106
+ function g(n2) {
107
107
  return n2.children;
108
108
  }
109
109
  function b(n2, l2) {
110
110
  this.props = n2, this.context = l2;
111
111
  }
112
- function g(n2, l2) {
112
+ function m(n2, l2) {
113
113
  if (null == l2)
114
- return n2.__ ? g(n2.__, n2.__.__k.indexOf(n2) + 1) : null;
115
- for (var u2; l2 < n2.__k.length; l2++)
116
- if (null != (u2 = n2.__k[l2]) && null != u2.__e)
117
- return u2.__e;
118
- return "function" == typeof n2.type ? g(n2) : null;
114
+ return n2.__ ? m(n2.__, n2.__i + 1) : null;
115
+ for (var u3; l2 < n2.__k.length; l2++)
116
+ if (null != (u3 = n2.__k[l2]) && null != u3.__e)
117
+ return u3.__e;
118
+ return "function" == typeof n2.type ? m(n2) : null;
119
119
  }
120
- function m(n2) {
121
- var l2, u2;
120
+ function w(n2) {
121
+ var l2, u3;
122
122
  if (null != (n2 = n2.__) && null != n2.__c) {
123
123
  for (n2.__e = n2.__c.base = null, l2 = 0; l2 < n2.__k.length; l2++)
124
- if (null != (u2 = n2.__k[l2]) && null != u2.__e) {
125
- n2.__e = n2.__c.base = u2.__e;
124
+ if (null != (u3 = n2.__k[l2]) && null != u3.__e) {
125
+ n2.__e = n2.__c.base = u3.__e;
126
126
  break;
127
127
  }
128
- return m(n2);
128
+ return w(n2);
129
129
  }
130
130
  }
131
- function w(n2) {
131
+ function k(n2) {
132
132
  (!n2.__d && (n2.__d = true) && i.push(n2) && !x.__r++ || o !== l.debounceRendering) && ((o = l.debounceRendering) || r)(x);
133
133
  }
134
134
  function x() {
135
- var n2, l2, u2, t2, o3, r2, e2, c2, s2;
135
+ var n2, u3, t2, o2, r2, e2, c2, s2, a2;
136
136
  for (i.sort(f); n2 = i.shift(); )
137
- n2.__d && (l2 = i.length, t2 = void 0, o3 = void 0, r2 = void 0, c2 = (e2 = (u2 = n2).__v).__e, (s2 = u2.__P) && (t2 = [], o3 = [], (r2 = v({}, e2)).__v = e2.__v + 1, L(s2, e2, r2, u2.__n, void 0 !== s2.ownerSVGElement, null != e2.__h ? [c2] : null, t2, null == c2 ? g(e2) : c2, e2.__h, o3), M(t2, e2, o3), e2.__e != c2 && m(e2)), i.length > l2 && i.sort(f));
137
+ n2.__d && (u3 = i.length, o2 = void 0, e2 = (r2 = (t2 = n2).__v).__e, s2 = [], a2 = [], (c2 = t2.__P) && ((o2 = v({}, r2)).__v = r2.__v + 1, l.vnode && l.vnode(o2), L(c2, o2, r2, t2.__n, void 0 !== c2.ownerSVGElement, 32 & r2.__u ? [e2] : null, s2, null == e2 ? m(r2) : e2, !!(32 & r2.__u), a2), o2.__v = r2.__v, o2.__.__k[o2.__i] = o2, M(s2, o2, a2), o2.__e != e2 && w(o2)), i.length > u3 && i.sort(f));
138
138
  x.__r = 0;
139
139
  }
140
- function P(n2, l2, u2, t2, i2, o3, r2, f2, e2, a2, v2) {
141
- var p2, y2, _2, b2, m2, w2, x2, P2, S, H2 = 0, I2 = t2 && t2.__k || s, T2 = I2.length, j2 = T2, z2 = l2.length;
142
- for (u2.__k = [], p2 = 0; p2 < z2; p2++)
143
- null != (b2 = u2.__k[p2] = null == (b2 = l2[p2]) || "boolean" == typeof b2 || "function" == typeof b2 ? null : "string" == typeof b2 || "number" == typeof b2 || "bigint" == typeof b2 ? d(null, b2, null, null, b2) : h(b2) ? d(k, { children: b2 }, null, null, null) : b2.__b > 0 ? d(b2.type, b2.props, b2.key, b2.ref ? b2.ref : null, b2.__v) : b2) ? (b2.__ = u2, b2.__b = u2.__b + 1, -1 === (P2 = A(b2, I2, x2 = p2 + H2, j2)) ? _2 = c : (_2 = I2[P2] || c, I2[P2] = void 0, j2--), L(n2, b2, _2, i2, o3, r2, f2, e2, a2, v2), m2 = b2.__e, (y2 = b2.ref) && _2.ref != y2 && (_2.ref && O(_2.ref, null, b2), v2.push(y2, b2.__c || m2, b2)), null != m2 && (null == w2 && (w2 = m2), (S = _2 === c || null === _2.__v) ? -1 == P2 && H2-- : P2 !== x2 && (P2 === x2 + 1 ? H2++ : P2 > x2 ? j2 > z2 - x2 ? H2 += P2 - x2 : H2-- : H2 = P2 < x2 && P2 == x2 - 1 ? P2 - x2 : 0), x2 = p2 + H2, "function" != typeof b2.type || P2 === x2 && _2.__k !== b2.__k ? "function" == typeof b2.type || P2 === x2 && !S ? void 0 !== b2.__d ? (e2 = b2.__d, b2.__d = void 0) : e2 = m2.nextSibling : e2 = $(n2, m2, e2) : e2 = C(b2, e2, n2), "function" == typeof u2.type && (u2.__d = e2))) : (_2 = I2[p2]) && null == _2.key && _2.__e && (_2.__e == e2 && (e2 = g(_2)), q(_2, _2, false));
144
- for (u2.__e = w2, p2 = T2; p2--; )
145
- null != I2[p2] && ("function" == typeof u2.type && null != I2[p2].__e && I2[p2].__e == u2.__d && (u2.__d = I2[p2].__e.nextSibling), q(I2[p2], I2[p2]));
140
+ function C(n2, l2, u3, t2, i3, o2, r2, f3, e2, a2, h2) {
141
+ var v2, p2, y2, d2, _, g2 = t2 && t2.__k || s, b2 = l2.length;
142
+ for (u3.__d = e2, P(u3, l2, g2), e2 = u3.__d, v2 = 0; v2 < b2; v2++)
143
+ null != (y2 = u3.__k[v2]) && "boolean" != typeof y2 && "function" != typeof y2 && (p2 = -1 === y2.__i ? c : g2[y2.__i] || c, y2.__i = v2, L(n2, y2, p2, i3, o2, r2, f3, e2, a2, h2), d2 = y2.__e, y2.ref && p2.ref != y2.ref && (p2.ref && z(p2.ref, null, y2), h2.push(y2.ref, y2.__c || d2, y2)), null == _ && null != d2 && (_ = d2), 65536 & y2.__u || p2.__k === y2.__k ? (d2 || p2.__e != e2 || (e2 = m(p2)), e2 = S(y2, e2, n2)) : "function" == typeof y2.type && void 0 !== y2.__d ? e2 = y2.__d : d2 && (e2 = d2.nextSibling), y2.__d = void 0, y2.__u &= -196609);
144
+ u3.__d = e2, u3.__e = _;
146
145
  }
147
- function C(n2, l2, u2) {
148
- for (var t2, i2 = n2.__k, o3 = 0; i2 && o3 < i2.length; o3++)
149
- (t2 = i2[o3]) && (t2.__ = n2, l2 = "function" == typeof t2.type ? C(t2, l2, u2) : $(u2, t2.__e, l2));
150
- return l2;
146
+ function P(n2, l2, u3) {
147
+ var t2, i3, o2, r2, f3, e2 = l2.length, c2 = u3.length, s2 = c2, a2 = 0;
148
+ for (n2.__k = [], t2 = 0; t2 < e2; t2++)
149
+ r2 = t2 + a2, null != (i3 = n2.__k[t2] = null == (i3 = l2[t2]) || "boolean" == typeof i3 || "function" == typeof i3 ? null : "string" == typeof i3 || "number" == typeof i3 || "bigint" == typeof i3 || i3.constructor == String ? d(null, i3, null, null, null) : h(i3) ? d(g, { children: i3 }, null, null, null) : void 0 === i3.constructor && i3.__b > 0 ? d(i3.type, i3.props, i3.key, i3.ref ? i3.ref : null, i3.__v) : i3) ? (i3.__ = n2, i3.__b = n2.__b + 1, f3 = H(i3, u3, r2, s2), i3.__i = f3, o2 = null, -1 !== f3 && (s2--, (o2 = u3[f3]) && (o2.__u |= 131072)), null == o2 || null === o2.__v ? (-1 == f3 && a2--, "function" != typeof i3.type && (i3.__u |= 65536)) : f3 !== r2 && (f3 === r2 + 1 ? a2++ : f3 > r2 ? s2 > e2 - r2 ? a2 += f3 - r2 : a2-- : f3 < r2 ? f3 == r2 - 1 && (a2 = f3 - r2) : a2 = 0, f3 !== t2 + a2 && (i3.__u |= 65536))) : (o2 = u3[r2]) && null == o2.key && o2.__e && 0 == (131072 & o2.__u) && (o2.__e == n2.__d && (n2.__d = m(o2)), N(o2, o2, false), u3[r2] = null, s2--);
150
+ if (s2)
151
+ for (t2 = 0; t2 < c2; t2++)
152
+ null != (o2 = u3[t2]) && 0 == (131072 & o2.__u) && (o2.__e == n2.__d && (n2.__d = m(o2)), N(o2, o2));
151
153
  }
152
- function $(n2, l2, u2) {
153
- return null == u2 || u2.parentNode !== n2 ? n2.insertBefore(l2, null) : l2 == u2 && null != l2.parentNode || n2.insertBefore(l2, u2), l2.nextSibling;
154
+ function S(n2, l2, u3) {
155
+ var t2, i3;
156
+ if ("function" == typeof n2.type) {
157
+ for (t2 = n2.__k, i3 = 0; t2 && i3 < t2.length; i3++)
158
+ t2[i3] && (t2[i3].__ = n2, l2 = S(t2[i3], l2, u3));
159
+ return l2;
160
+ }
161
+ n2.__e != l2 && (u3.insertBefore(n2.__e, l2 || null), l2 = n2.__e);
162
+ do {
163
+ l2 = l2 && l2.nextSibling;
164
+ } while (null != l2 && 8 === l2.nodeType);
165
+ return l2;
154
166
  }
155
- function A(n2, l2, u2, t2) {
156
- var i2 = n2.key, o3 = n2.type, r2 = u2 - 1, f2 = u2 + 1, e2 = l2[u2];
157
- if (null === e2 || e2 && i2 == e2.key && o3 === e2.type)
158
- return u2;
159
- if (t2 > (null != e2 ? 1 : 0))
160
- for (; r2 >= 0 || f2 < l2.length; ) {
167
+ function H(n2, l2, u3, t2) {
168
+ var i3 = n2.key, o2 = n2.type, r2 = u3 - 1, f3 = u3 + 1, e2 = l2[u3];
169
+ if (null === e2 || e2 && i3 == e2.key && o2 === e2.type && 0 == (131072 & e2.__u))
170
+ return u3;
171
+ if (t2 > (null != e2 && 0 == (131072 & e2.__u) ? 1 : 0))
172
+ for (; r2 >= 0 || f3 < l2.length; ) {
161
173
  if (r2 >= 0) {
162
- if ((e2 = l2[r2]) && i2 == e2.key && o3 === e2.type)
174
+ if ((e2 = l2[r2]) && 0 == (131072 & e2.__u) && i3 == e2.key && o2 === e2.type)
163
175
  return r2;
164
176
  r2--;
165
177
  }
166
- if (f2 < l2.length) {
167
- if ((e2 = l2[f2]) && i2 == e2.key && o3 === e2.type)
168
- return f2;
169
- f2++;
178
+ if (f3 < l2.length) {
179
+ if ((e2 = l2[f3]) && 0 == (131072 & e2.__u) && i3 == e2.key && o2 === e2.type)
180
+ return f3;
181
+ f3++;
170
182
  }
171
183
  }
172
184
  return -1;
173
185
  }
174
- function H(n2, l2, u2, t2, i2) {
175
- var o3;
176
- for (o3 in u2)
177
- "children" === o3 || "key" === o3 || o3 in l2 || T(n2, o3, null, u2[o3], t2);
178
- for (o3 in l2)
179
- i2 && "function" != typeof l2[o3] || "children" === o3 || "key" === o3 || "value" === o3 || "checked" === o3 || u2[o3] === l2[o3] || T(n2, o3, l2[o3], u2[o3], t2);
180
- }
181
- function I(n2, l2, u2) {
182
- "-" === l2[0] ? n2.setProperty(l2, null == u2 ? "" : u2) : n2[l2] = null == u2 ? "" : "number" != typeof u2 || a.test(l2) ? u2 : u2 + "px";
186
+ function I(n2, l2, u3) {
187
+ "-" === l2[0] ? n2.setProperty(l2, null == u3 ? "" : u3) : n2[l2] = null == u3 ? "" : "number" != typeof u3 || a.test(l2) ? u3 : u3 + "px";
183
188
  }
184
- function T(n2, l2, u2, t2, i2) {
185
- var o3;
189
+ function T(n2, l2, u3, t2, i3) {
190
+ var o2;
186
191
  n:
187
192
  if ("style" === l2)
188
- if ("string" == typeof u2)
189
- n2.style.cssText = u2;
193
+ if ("string" == typeof u3)
194
+ n2.style.cssText = u3;
190
195
  else {
191
196
  if ("string" == typeof t2 && (n2.style.cssText = t2 = ""), t2)
192
197
  for (l2 in t2)
193
- u2 && l2 in u2 || I(n2.style, l2, "");
194
- if (u2)
195
- for (l2 in u2)
196
- t2 && u2[l2] === t2[l2] || I(n2.style, l2, u2[l2]);
198
+ u3 && l2 in u3 || I(n2.style, l2, "");
199
+ if (u3)
200
+ for (l2 in u3)
201
+ t2 && u3[l2] === t2[l2] || I(n2.style, l2, u3[l2]);
197
202
  }
198
203
  else if ("o" === l2[0] && "n" === l2[1])
199
- o3 = l2 !== (l2 = l2.replace(/Capture$/, "")), l2 = l2.toLowerCase() in n2 ? l2.toLowerCase().slice(2) : l2.slice(2), n2.l || (n2.l = {}), n2.l[l2 + o3] = u2, u2 ? t2 || n2.addEventListener(l2, o3 ? z : j, o3) : n2.removeEventListener(l2, o3 ? z : j, o3);
200
- else if ("dangerouslySetInnerHTML" !== l2) {
201
- if (i2)
204
+ o2 = l2 !== (l2 = l2.replace(/(PointerCapture)$|Capture$/i, "$1")), l2 = l2.toLowerCase() in n2 ? l2.toLowerCase().slice(2) : l2.slice(2), n2.l || (n2.l = {}), n2.l[l2 + o2] = u3, u3 ? t2 ? u3.u = t2.u : (u3.u = Date.now(), n2.addEventListener(l2, o2 ? D : A, o2)) : n2.removeEventListener(l2, o2 ? D : A, o2);
205
+ else {
206
+ if (i3)
202
207
  l2 = l2.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
203
- else if ("width" !== l2 && "height" !== l2 && "href" !== l2 && "list" !== l2 && "form" !== l2 && "tabIndex" !== l2 && "download" !== l2 && "rowSpan" !== l2 && "colSpan" !== l2 && l2 in n2)
208
+ else if ("width" !== l2 && "height" !== l2 && "href" !== l2 && "list" !== l2 && "form" !== l2 && "tabIndex" !== l2 && "download" !== l2 && "rowSpan" !== l2 && "colSpan" !== l2 && "role" !== l2 && l2 in n2)
204
209
  try {
205
- n2[l2] = null == u2 ? "" : u2;
210
+ n2[l2] = null == u3 ? "" : u3;
206
211
  break n;
207
212
  } catch (n3) {
208
213
  }
209
- "function" == typeof u2 || (null == u2 || false === u2 && "-" !== l2[4] ? n2.removeAttribute(l2) : n2.setAttribute(l2, u2));
214
+ "function" == typeof u3 || (null == u3 || false === u3 && "-" !== l2[4] ? n2.removeAttribute(l2) : n2.setAttribute(l2, u3));
210
215
  }
211
216
  }
212
- function j(n2) {
213
- return this.l[n2.type + false](l.event ? l.event(n2) : n2);
217
+ function A(n2) {
218
+ if (this.l) {
219
+ var u3 = this.l[n2.type + false];
220
+ if (n2.t) {
221
+ if (n2.t <= u3.u)
222
+ return;
223
+ } else
224
+ n2.t = Date.now();
225
+ return u3(l.event ? l.event(n2) : n2);
226
+ }
214
227
  }
215
- function z(n2) {
216
- return this.l[n2.type + true](l.event ? l.event(n2) : n2);
228
+ function D(n2) {
229
+ if (this.l)
230
+ return this.l[n2.type + true](l.event ? l.event(n2) : n2);
217
231
  }
218
- function L(n2, u2, t2, i2, o3, r2, f2, e2, c2, s2) {
219
- var a2, p2, y2, d2, _2, g2, m2, w2, x2, C2, S, $2, A2, H2, I2, T2 = u2.type;
220
- if (void 0 !== u2.constructor)
232
+ function L(n2, u3, t2, i3, o2, r2, f3, e2, c2, s2) {
233
+ var a2, p2, y2, d2, _, m2, w2, k2, x2, P2, S2, $, H2, I2, T2, A2 = u3.type;
234
+ if (void 0 !== u3.constructor)
221
235
  return null;
222
- null != t2.__h && (c2 = t2.__h, e2 = u2.__e = t2.__e, u2.__h = null, r2 = [e2]), (a2 = l.__b) && a2(u2);
236
+ 128 & t2.__u && (c2 = !!(32 & t2.__u), r2 = [e2 = u3.__e = t2.__e]), (a2 = l.__b) && a2(u3);
223
237
  n:
224
- if ("function" == typeof T2)
238
+ if ("function" == typeof A2)
225
239
  try {
226
- if (w2 = u2.props, x2 = (a2 = T2.contextType) && i2[a2.__c], C2 = a2 ? x2 ? x2.props.value : a2.__ : i2, t2.__c ? m2 = (p2 = u2.__c = t2.__c).__ = p2.__E : ("prototype" in T2 && T2.prototype.render ? u2.__c = p2 = new T2(w2, C2) : (u2.__c = p2 = new b(w2, C2), p2.constructor = T2, p2.render = B), x2 && x2.sub(p2), p2.props = w2, p2.state || (p2.state = {}), p2.context = C2, p2.__n = i2, y2 = p2.__d = true, p2.__h = [], p2._sb = []), null == p2.__s && (p2.__s = p2.state), null != T2.getDerivedStateFromProps && (p2.__s == p2.state && (p2.__s = v({}, p2.__s)), v(p2.__s, T2.getDerivedStateFromProps(w2, p2.__s))), d2 = p2.props, _2 = p2.state, p2.__v = u2, y2)
227
- null == T2.getDerivedStateFromProps && null != p2.componentWillMount && p2.componentWillMount(), null != p2.componentDidMount && p2.__h.push(p2.componentDidMount);
240
+ if (k2 = u3.props, x2 = (a2 = A2.contextType) && i3[a2.__c], P2 = a2 ? x2 ? x2.props.value : a2.__ : i3, t2.__c ? w2 = (p2 = u3.__c = t2.__c).__ = p2.__E : ("prototype" in A2 && A2.prototype.render ? u3.__c = p2 = new A2(k2, P2) : (u3.__c = p2 = new b(k2, P2), p2.constructor = A2, p2.render = O), x2 && x2.sub(p2), p2.props = k2, p2.state || (p2.state = {}), p2.context = P2, p2.__n = i3, y2 = p2.__d = true, p2.__h = [], p2._sb = []), null == p2.__s && (p2.__s = p2.state), null != A2.getDerivedStateFromProps && (p2.__s == p2.state && (p2.__s = v({}, p2.__s)), v(p2.__s, A2.getDerivedStateFromProps(k2, p2.__s))), d2 = p2.props, _ = p2.state, p2.__v = u3, y2)
241
+ null == A2.getDerivedStateFromProps && null != p2.componentWillMount && p2.componentWillMount(), null != p2.componentDidMount && p2.__h.push(p2.componentDidMount);
228
242
  else {
229
- if (null == T2.getDerivedStateFromProps && w2 !== d2 && null != p2.componentWillReceiveProps && p2.componentWillReceiveProps(w2, C2), !p2.__e && (null != p2.shouldComponentUpdate && false === p2.shouldComponentUpdate(w2, p2.__s, C2) || u2.__v === t2.__v)) {
230
- for (u2.__v !== t2.__v && (p2.props = w2, p2.state = p2.__s, p2.__d = false), u2.__e = t2.__e, u2.__k = t2.__k, u2.__k.forEach(function(n3) {
231
- n3 && (n3.__ = u2);
232
- }), S = 0; S < p2._sb.length; S++)
233
- p2.__h.push(p2._sb[S]);
234
- p2._sb = [], p2.__h.length && f2.push(p2);
243
+ if (null == A2.getDerivedStateFromProps && k2 !== d2 && null != p2.componentWillReceiveProps && p2.componentWillReceiveProps(k2, P2), !p2.__e && (null != p2.shouldComponentUpdate && false === p2.shouldComponentUpdate(k2, p2.__s, P2) || u3.__v === t2.__v)) {
244
+ for (u3.__v !== t2.__v && (p2.props = k2, p2.state = p2.__s, p2.__d = false), u3.__e = t2.__e, u3.__k = t2.__k, u3.__k.forEach(function(n3) {
245
+ n3 && (n3.__ = u3);
246
+ }), S2 = 0; S2 < p2._sb.length; S2++)
247
+ p2.__h.push(p2._sb[S2]);
248
+ p2._sb = [], p2.__h.length && f3.push(p2);
235
249
  break n;
236
250
  }
237
- null != p2.componentWillUpdate && p2.componentWillUpdate(w2, p2.__s, C2), null != p2.componentDidUpdate && p2.__h.push(function() {
238
- p2.componentDidUpdate(d2, _2, g2);
251
+ null != p2.componentWillUpdate && p2.componentWillUpdate(k2, p2.__s, P2), null != p2.componentDidUpdate && p2.__h.push(function() {
252
+ p2.componentDidUpdate(d2, _, m2);
239
253
  });
240
254
  }
241
- if (p2.context = C2, p2.props = w2, p2.__P = n2, p2.__e = false, $2 = l.__r, A2 = 0, "prototype" in T2 && T2.prototype.render) {
242
- for (p2.state = p2.__s, p2.__d = false, $2 && $2(u2), a2 = p2.render(p2.props, p2.state, p2.context), H2 = 0; H2 < p2._sb.length; H2++)
243
- p2.__h.push(p2._sb[H2]);
255
+ if (p2.context = P2, p2.props = k2, p2.__P = n2, p2.__e = false, $ = l.__r, H2 = 0, "prototype" in A2 && A2.prototype.render) {
256
+ for (p2.state = p2.__s, p2.__d = false, $ && $(u3), a2 = p2.render(p2.props, p2.state, p2.context), I2 = 0; I2 < p2._sb.length; I2++)
257
+ p2.__h.push(p2._sb[I2]);
244
258
  p2._sb = [];
245
259
  } else
246
260
  do {
247
- p2.__d = false, $2 && $2(u2), a2 = p2.render(p2.props, p2.state, p2.context), p2.state = p2.__s;
248
- } while (p2.__d && ++A2 < 25);
249
- p2.state = p2.__s, null != p2.getChildContext && (i2 = v(v({}, i2), p2.getChildContext())), y2 || null == p2.getSnapshotBeforeUpdate || (g2 = p2.getSnapshotBeforeUpdate(d2, _2)), P(n2, h(I2 = null != a2 && a2.type === k && null == a2.key ? a2.props.children : a2) ? I2 : [I2], u2, t2, i2, o3, r2, f2, e2, c2, s2), p2.base = u2.__e, u2.__h = null, p2.__h.length && f2.push(p2), m2 && (p2.__E = p2.__ = null);
261
+ p2.__d = false, $ && $(u3), a2 = p2.render(p2.props, p2.state, p2.context), p2.state = p2.__s;
262
+ } while (p2.__d && ++H2 < 25);
263
+ p2.state = p2.__s, null != p2.getChildContext && (i3 = v(v({}, i3), p2.getChildContext())), y2 || null == p2.getSnapshotBeforeUpdate || (m2 = p2.getSnapshotBeforeUpdate(d2, _)), C(n2, h(T2 = null != a2 && a2.type === g && null == a2.key ? a2.props.children : a2) ? T2 : [T2], u3, t2, i3, o2, r2, f3, e2, c2, s2), p2.base = u3.__e, u3.__u &= -161, p2.__h.length && f3.push(p2), w2 && (p2.__E = p2.__ = null);
250
264
  } catch (n3) {
251
- u2.__v = null, (c2 || null != r2) && (u2.__e = e2, u2.__h = !!c2, r2[r2.indexOf(e2)] = null), l.__e(n3, u2, t2);
265
+ u3.__v = null, c2 || null != r2 ? (u3.__e = e2, u3.__u |= c2 ? 160 : 32, r2[r2.indexOf(e2)] = null) : (u3.__e = t2.__e, u3.__k = t2.__k), l.__e(n3, u3, t2);
252
266
  }
253
267
  else
254
- null == r2 && u2.__v === t2.__v ? (u2.__k = t2.__k, u2.__e = t2.__e) : u2.__e = N(t2.__e, u2, t2, i2, o3, r2, f2, c2, s2);
255
- (a2 = l.diffed) && a2(u2);
268
+ null == r2 && u3.__v === t2.__v ? (u3.__k = t2.__k, u3.__e = t2.__e) : u3.__e = j(t2.__e, u3, t2, i3, o2, r2, f3, c2, s2);
269
+ (a2 = l.diffed) && a2(u3);
256
270
  }
257
- function M(n2, u2, t2) {
258
- for (var i2 = 0; i2 < t2.length; i2++)
259
- O(t2[i2], t2[++i2], t2[++i2]);
260
- l.__c && l.__c(u2, n2), n2.some(function(u3) {
271
+ function M(n2, u3, t2) {
272
+ u3.__d = void 0;
273
+ for (var i3 = 0; i3 < t2.length; i3++)
274
+ z(t2[i3], t2[++i3], t2[++i3]);
275
+ l.__c && l.__c(u3, n2), n2.some(function(u4) {
261
276
  try {
262
- n2 = u3.__h, u3.__h = [], n2.some(function(n3) {
263
- n3.call(u3);
277
+ n2 = u4.__h, u4.__h = [], n2.some(function(n3) {
278
+ n3.call(u4);
264
279
  });
265
280
  } catch (n3) {
266
- l.__e(n3, u3.__v);
281
+ l.__e(n3, u4.__v);
267
282
  }
268
283
  });
269
284
  }
270
- function N(l2, u2, t2, i2, o3, r2, f2, e2, s2) {
271
- var a2, v2, y2, d2 = t2.props, _2 = u2.props, k2 = u2.type, b2 = 0;
272
- if ("svg" === k2 && (o3 = true), null != r2) {
273
- for (; b2 < r2.length; b2++)
274
- if ((a2 = r2[b2]) && "setAttribute" in a2 == !!k2 && (k2 ? a2.localName === k2 : 3 === a2.nodeType)) {
275
- l2 = a2, r2[b2] = null;
285
+ function j(l2, u3, t2, i3, o2, r2, f3, e2, s2) {
286
+ var a2, v2, y2, d2, _, g2, b2, w2 = t2.props, k2 = u3.props, x2 = u3.type;
287
+ if ("svg" === x2 && (o2 = true), null != r2) {
288
+ for (a2 = 0; a2 < r2.length; a2++)
289
+ if ((_ = r2[a2]) && "setAttribute" in _ == !!x2 && (x2 ? _.localName === x2 : 3 === _.nodeType)) {
290
+ l2 = _, r2[a2] = null;
276
291
  break;
277
292
  }
278
293
  }
279
294
  if (null == l2) {
280
- if (null === k2)
281
- return document.createTextNode(_2);
282
- l2 = o3 ? document.createElementNS("http://www.w3.org/2000/svg", k2) : document.createElement(k2, _2.is && _2), r2 = null, e2 = false;
295
+ if (null === x2)
296
+ return document.createTextNode(k2);
297
+ l2 = o2 ? document.createElementNS("http://www.w3.org/2000/svg", x2) : document.createElement(x2, k2.is && k2), r2 = null, e2 = false;
283
298
  }
284
- if (null === k2)
285
- d2 === _2 || e2 && l2.data === _2 || (l2.data = _2);
299
+ if (null === x2)
300
+ w2 === k2 || e2 && l2.data === k2 || (l2.data = k2);
286
301
  else {
287
- if (r2 = r2 && n.call(l2.childNodes), v2 = (d2 = t2.props || c).dangerouslySetInnerHTML, y2 = _2.dangerouslySetInnerHTML, !e2) {
288
- if (null != r2)
289
- for (d2 = {}, b2 = 0; b2 < l2.attributes.length; b2++)
290
- d2[l2.attributes[b2].name] = l2.attributes[b2].value;
291
- (y2 || v2) && (y2 && (v2 && y2.__html == v2.__html || y2.__html === l2.innerHTML) || (l2.innerHTML = y2 && y2.__html || ""));
292
- }
293
- if (H(l2, _2, d2, o3, e2), y2)
294
- u2.__k = [];
295
- else if (P(l2, h(b2 = u2.props.children) ? b2 : [b2], u2, t2, i2, o3 && "foreignObject" !== k2, r2, f2, r2 ? r2[0] : t2.__k && g(t2, 0), e2, s2), null != r2)
296
- for (b2 = r2.length; b2--; )
297
- null != r2[b2] && p(r2[b2]);
298
- e2 || ("value" in _2 && void 0 !== (b2 = _2.value) && (b2 !== l2.value || "progress" === k2 && !b2 || "option" === k2 && b2 !== d2.value) && T(l2, "value", b2, d2.value, false), "checked" in _2 && void 0 !== (b2 = _2.checked) && b2 !== l2.checked && T(l2, "checked", b2, d2.checked, false));
302
+ if (r2 = r2 && n.call(l2.childNodes), w2 = t2.props || c, !e2 && null != r2)
303
+ for (w2 = {}, a2 = 0; a2 < l2.attributes.length; a2++)
304
+ w2[(_ = l2.attributes[a2]).name] = _.value;
305
+ for (a2 in w2)
306
+ _ = w2[a2], "children" == a2 || ("dangerouslySetInnerHTML" == a2 ? y2 = _ : "key" === a2 || a2 in k2 || T(l2, a2, null, _, o2));
307
+ for (a2 in k2)
308
+ _ = k2[a2], "children" == a2 ? d2 = _ : "dangerouslySetInnerHTML" == a2 ? v2 = _ : "value" == a2 ? g2 = _ : "checked" == a2 ? b2 = _ : "key" === a2 || e2 && "function" != typeof _ || w2[a2] === _ || T(l2, a2, _, w2[a2], o2);
309
+ if (v2)
310
+ e2 || y2 && (v2.__html === y2.__html || v2.__html === l2.innerHTML) || (l2.innerHTML = v2.__html), u3.__k = [];
311
+ else if (y2 && (l2.innerHTML = ""), C(l2, h(d2) ? d2 : [d2], u3, t2, i3, o2 && "foreignObject" !== x2, r2, f3, r2 ? r2[0] : t2.__k && m(t2, 0), e2, s2), null != r2)
312
+ for (a2 = r2.length; a2--; )
313
+ null != r2[a2] && p(r2[a2]);
314
+ e2 || (a2 = "value", void 0 !== g2 && (g2 !== l2[a2] || "progress" === x2 && !g2 || "option" === x2 && g2 !== w2[a2]) && T(l2, a2, g2, w2[a2], false), a2 = "checked", void 0 !== b2 && b2 !== l2[a2] && T(l2, a2, b2, w2[a2], false));
299
315
  }
300
316
  return l2;
301
317
  }
302
- function O(n2, u2, t2) {
318
+ function z(n2, u3, t2) {
303
319
  try {
304
- "function" == typeof n2 ? n2(u2) : n2.current = u2;
320
+ "function" == typeof n2 ? n2(u3) : n2.current = u3;
305
321
  } catch (n3) {
306
322
  l.__e(n3, t2);
307
323
  }
308
324
  }
309
- function q(n2, u2, t2) {
310
- var i2, o3;
311
- if (l.unmount && l.unmount(n2), (i2 = n2.ref) && (i2.current && i2.current !== n2.__e || O(i2, null, u2)), null != (i2 = n2.__c)) {
312
- if (i2.componentWillUnmount)
325
+ function N(n2, u3, t2) {
326
+ var i3, o2;
327
+ if (l.unmount && l.unmount(n2), (i3 = n2.ref) && (i3.current && i3.current !== n2.__e || z(i3, null, u3)), null != (i3 = n2.__c)) {
328
+ if (i3.componentWillUnmount)
313
329
  try {
314
- i2.componentWillUnmount();
330
+ i3.componentWillUnmount();
315
331
  } catch (n3) {
316
- l.__e(n3, u2);
332
+ l.__e(n3, u3);
317
333
  }
318
- i2.base = i2.__P = null, n2.__c = void 0;
334
+ i3.base = i3.__P = null, n2.__c = void 0;
319
335
  }
320
- if (i2 = n2.__k)
321
- for (o3 = 0; o3 < i2.length; o3++)
322
- i2[o3] && q(i2[o3], u2, t2 || "function" != typeof n2.type);
336
+ if (i3 = n2.__k)
337
+ for (o2 = 0; o2 < i3.length; o2++)
338
+ i3[o2] && N(i3[o2], u3, t2 || "function" != typeof n2.type);
323
339
  t2 || null == n2.__e || p(n2.__e), n2.__ = n2.__e = n2.__d = void 0;
324
340
  }
325
- function B(n2, l2, u2) {
326
- return this.constructor(n2, u2);
341
+ function O(n2, l2, u3) {
342
+ return this.constructor(n2, u3);
327
343
  }
328
- function D(u2, t2, i2) {
329
- var o3, r2, f2, e2;
330
- l.__ && l.__(u2, t2), r2 = (o3 = "function" == typeof i2) ? null : i2 && i2.__k || t2.__k, f2 = [], e2 = [], L(t2, u2 = (!o3 && i2 || t2).__k = y(k, null, [u2]), r2 || c, c, void 0 !== t2.ownerSVGElement, !o3 && i2 ? [i2] : r2 ? null : t2.firstChild ? n.call(t2.childNodes) : null, f2, !o3 && i2 ? i2 : r2 ? r2.__e : t2.firstChild, o3, e2), M(f2, u2, e2);
344
+ function q(u3, t2, i3) {
345
+ var o2, r2, f3, e2;
346
+ l.__ && l.__(u3, t2), r2 = (o2 = "function" == typeof i3) ? null : i3 && i3.__k || t2.__k, f3 = [], e2 = [], L(t2, u3 = (!o2 && i3 || t2).__k = y(g, null, [u3]), r2 || c, c, void 0 !== t2.ownerSVGElement, !o2 && i3 ? [i3] : r2 ? null : t2.firstChild ? n.call(t2.childNodes) : null, f3, !o2 && i3 ? i3 : r2 ? r2.__e : t2.firstChild, o2, e2), M(f3, u3, e2);
331
347
  }
332
- n = s.slice, l = { __e: function(n2, l2, u2, t2) {
333
- for (var i2, o3, r2; l2 = l2.__; )
334
- if ((i2 = l2.__c) && !i2.__)
348
+ n = s.slice, l = { __e: function(n2, l2, u3, t2) {
349
+ for (var i3, o2, r2; l2 = l2.__; )
350
+ if ((i3 = l2.__c) && !i3.__)
335
351
  try {
336
- if ((o3 = i2.constructor) && null != o3.getDerivedStateFromError && (i2.setState(o3.getDerivedStateFromError(n2)), r2 = i2.__d), null != i2.componentDidCatch && (i2.componentDidCatch(n2, t2 || {}), r2 = i2.__d), r2)
337
- return i2.__E = i2;
352
+ if ((o2 = i3.constructor) && null != o2.getDerivedStateFromError && (i3.setState(o2.getDerivedStateFromError(n2)), r2 = i3.__d), null != i3.componentDidCatch && (i3.componentDidCatch(n2, t2 || {}), r2 = i3.__d), r2)
353
+ return i3.__E = i3;
338
354
  } catch (l3) {
339
355
  n2 = l3;
340
356
  }
341
357
  throw n2;
342
358
  } }, u = 0, t = function(n2) {
343
- return null != n2 && void 0 === n2.constructor;
359
+ return null != n2 && null == n2.constructor;
344
360
  }, b.prototype.setState = function(n2, l2) {
345
- var u2;
346
- u2 = null != this.__s && this.__s !== this.state ? this.__s : this.__s = v({}, this.state), "function" == typeof n2 && (n2 = n2(v({}, u2), this.props)), n2 && v(u2, n2), null != n2 && this.__v && (l2 && this._sb.push(l2), w(this));
361
+ var u3;
362
+ u3 = null != this.__s && this.__s !== this.state ? this.__s : this.__s = v({}, this.state), "function" == typeof n2 && (n2 = n2(v({}, u3), this.props)), n2 && v(u3, n2), null != n2 && this.__v && (l2 && this._sb.push(l2), k(this));
347
363
  }, b.prototype.forceUpdate = function(n2) {
348
- this.__v && (this.__e = true, n2 && this.__h.push(n2), w(this));
349
- }, b.prototype.render = k, i = [], r = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, f = function(n2, l2) {
364
+ this.__v && (this.__e = true, n2 && this.__h.push(n2), k(this));
365
+ }, b.prototype.render = g, i = [], r = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, f = function(n2, l2) {
350
366
  return n2.__v.__b - l2.__v.__b;
351
367
  }, x.__r = 0, e = 0;
352
368
 
353
369
  // ../../node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js
354
- var _ = 0;
355
- function o2(o3, e2, n2, t2, f2, l2) {
356
- var s2, u2, a2 = {};
357
- for (u2 in e2)
358
- "ref" == u2 ? s2 = e2[u2] : a2[u2] = e2[u2];
359
- var i2 = { type: o3, props: a2, key: n2, ref: s2, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: --_, __source: f2, __self: l2 };
360
- if ("function" == typeof o3 && (s2 = o3.defaultProps))
361
- for (u2 in s2)
362
- void 0 === a2[u2] && (a2[u2] = s2[u2]);
363
- return l.vnode && l.vnode(i2), i2;
370
+ var f2 = 0;
371
+ var i2 = Array.isArray;
372
+ function u2(e2, t2, n2, o2, i3, u3) {
373
+ var a2, c2, p2 = {};
374
+ for (c2 in t2)
375
+ "ref" == c2 ? a2 = t2[c2] : p2[c2] = t2[c2];
376
+ var l2 = { type: e2, props: p2, key: n2, ref: a2, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --f2, __i: -1, __u: 0, __source: i3, __self: u3 };
377
+ if ("function" == typeof e2 && (a2 = e2.defaultProps))
378
+ for (c2 in a2)
379
+ void 0 === p2[c2] && (p2[c2] = a2[c2]);
380
+ return l.vnode && l.vnode(l2), l2;
364
381
  }
365
382
 
366
383
  // src/components.tsx
367
384
  var IconButton = (props) => {
368
385
  const { className, label, onClick } = props;
369
- return /* @__PURE__ */ o2("div", { className: "deck-widget-button", children: /* @__PURE__ */ o2(
386
+ return /* @__PURE__ */ u2("div", { className: "deck-widget-button", children: /* @__PURE__ */ u2(
370
387
  "button",
371
388
  {
372
389
  className: `deck-widget-icon-button ${className}`,
373
390
  type: "button",
374
391
  onClick,
375
392
  title: label,
376
- children: /* @__PURE__ */ o2("div", { className: "deck-widget-icon" })
393
+ children: /* @__PURE__ */ u2("div", { className: "deck-widget-icon" })
377
394
  }
378
395
  ) });
379
396
  };
380
397
  var ButtonGroup = (props) => {
381
398
  const { children, orientation } = props;
382
- return /* @__PURE__ */ o2("div", { className: `deck-widget-button-group ${orientation}`, children });
399
+ return /* @__PURE__ */ u2("div", { className: `deck-widget-button-group ${orientation}`, children });
383
400
  };
384
401
  var GroupedIconButton = (props) => {
385
402
  const { className, label, onClick } = props;
386
- return /* @__PURE__ */ o2(
403
+ return /* @__PURE__ */ u2(
387
404
  "button",
388
405
  {
389
406
  className: `deck-widget-icon-button ${className}`,
390
407
  type: "button",
391
408
  onClick,
392
409
  title: label,
393
- children: /* @__PURE__ */ o2("div", { className: "deck-widget-icon" })
410
+ children: /* @__PURE__ */ u2("div", { className: "deck-widget-icon" })
394
411
  }
395
412
  );
396
413
  };
@@ -434,7 +451,7 @@ var __exports__ = (() => {
434
451
  if (!el) {
435
452
  return;
436
453
  }
437
- const ui = /* @__PURE__ */ o2(
454
+ const ui = /* @__PURE__ */ u2(
438
455
  IconButton,
439
456
  {
440
457
  onClick: this.handleClick.bind(this),
@@ -442,7 +459,7 @@ var __exports__ = (() => {
442
459
  className: this.fullscreen ? "deck-widget-fullscreen-exit" : "deck-widget-fullscreen-enter"
443
460
  }
444
461
  );
445
- D(ui, el);
462
+ q(ui, el);
446
463
  }
447
464
  setProps(props) {
448
465
  const oldProps = this.props;
@@ -556,22 +573,22 @@ var __exports__ = (() => {
556
573
  if (!element) {
557
574
  return;
558
575
  }
559
- const ui = /* @__PURE__ */ o2("div", { className: "deck-widget-button", style: { perspective: 100 }, children: /* @__PURE__ */ o2(
576
+ const ui = /* @__PURE__ */ u2("div", { className: "deck-widget-button", style: { perspective: 100 }, children: /* @__PURE__ */ u2(
560
577
  "button",
561
578
  {
562
579
  type: "button",
563
580
  onClick: () => this.handleCompassReset(),
564
581
  label: this.props.label,
565
582
  style: { transform: `rotateX(${rx}deg)` },
566
- children: /* @__PURE__ */ o2("svg", { fill: "none", width: "100%", height: "100%", viewBox: "0 0 26 26", children: /* @__PURE__ */ o2("g", { transform: `rotate(${rz},13,13)`, children: [
567
- /* @__PURE__ */ o2(
583
+ children: /* @__PURE__ */ u2("svg", { fill: "none", width: "100%", height: "100%", viewBox: "0 0 26 26", children: /* @__PURE__ */ u2("g", { transform: `rotate(${rz},13,13)`, children: [
584
+ /* @__PURE__ */ u2(
568
585
  "path",
569
586
  {
570
587
  d: "M10 13.0001L12.9999 5L15.9997 13.0001H10Z",
571
588
  fill: "var(--icon-compass-north-color, #F05C44)"
572
589
  }
573
590
  ),
574
- /* @__PURE__ */ o2(
591
+ /* @__PURE__ */ u2(
575
592
  "path",
576
593
  {
577
594
  d: "M16.0002 12.9999L13.0004 21L10.0005 12.9999H16.0002Z",
@@ -581,7 +598,7 @@ var __exports__ = (() => {
581
598
  ] }) })
582
599
  }
583
600
  ) });
584
- D(ui, element);
601
+ q(ui, element);
585
602
  }
586
603
  onRemove() {
587
604
  this.deck = void 0;
@@ -629,8 +646,8 @@ var __exports__ = (() => {
629
646
  if (style) {
630
647
  Object.entries(style).map(([key, value]) => element.style.setProperty(key, value));
631
648
  }
632
- const ui = /* @__PURE__ */ o2(ButtonGroup, { orientation: this.orientation, children: [
633
- /* @__PURE__ */ o2(
649
+ const ui = /* @__PURE__ */ u2(ButtonGroup, { orientation: this.orientation, children: [
650
+ /* @__PURE__ */ u2(
634
651
  GroupedIconButton,
635
652
  {
636
653
  onClick: () => this.handleZoomIn(),
@@ -638,7 +655,7 @@ var __exports__ = (() => {
638
655
  className: "deck-widget-zoom-in"
639
656
  }
640
657
  ),
641
- /* @__PURE__ */ o2(
658
+ /* @__PURE__ */ u2(
642
659
  GroupedIconButton,
643
660
  {
644
661
  onClick: () => this.handleZoomOut(),
@@ -647,7 +664,7 @@ var __exports__ = (() => {
647
664
  }
648
665
  )
649
666
  ] });
650
- D(ui, element);
667
+ q(ui, element);
651
668
  this.deck = deck;
652
669
  this.element = element;
653
670
  return element;
@@ -28,12 +28,12 @@ export declare class FullscreenWidget implements Widget<FullscreenWidgetProps> {
28
28
  id: string;
29
29
  props: FullscreenWidgetProps;
30
30
  placement: WidgetPlacement;
31
- deck?: Deck;
31
+ deck?: Deck<any>;
32
32
  element?: HTMLDivElement;
33
33
  fullscreen: boolean;
34
34
  constructor(props: FullscreenWidgetProps);
35
35
  onAdd({ deck }: {
36
- deck: Deck;
36
+ deck: Deck<any>;
37
37
  }): HTMLDivElement;
38
38
  onRemove(): void;
39
39
  private update;
@@ -1 +1 @@
1
- {"version":3,"file":"fullscreen-widget.d.ts","sourceRoot":"","sources":["../src/fullscreen-widget.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,IAAI,EAAE,MAAM,EAAE,eAAe,EAAC,MAAM,eAAe,CAAC;AAIjE,UAAU,qBAAqB;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B;;;OAGG;IAEH,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACrC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,gBAAiB,YAAW,MAAM,CAAC,qBAAqB,CAAC;IACpE,EAAE,SAAgB;IAClB,KAAK,EAAE,qBAAqB,CAAC;IAC7B,SAAS,EAAE,eAAe,CAAc;IAExC,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,OAAO,CAAC,EAAE,cAAc,CAAC;IAEzB,UAAU,EAAE,OAAO,CAAS;gBAEhB,KAAK,EAAE,qBAAqB;IASxC,KAAK,CAAC,EAAC,IAAI,EAAC,EAAE;QAAC,IAAI,EAAE,IAAI,CAAA;KAAC,GAAG,cAAc;IAe3C,QAAQ;IAMR,OAAO,CAAC,MAAM;IAiBd,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,qBAAqB,CAAC;IAwB9C,YAAY;IAIZ,kBAAkB;IASZ,WAAW;IASX,iBAAiB;IASjB,cAAc;IAQpB,sBAAsB;CAGvB"}
1
+ {"version":3,"file":"fullscreen-widget.d.ts","sourceRoot":"","sources":["../src/fullscreen-widget.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,IAAI,EAAE,MAAM,EAAE,eAAe,EAAC,MAAM,eAAe,CAAC;AAIjE,UAAU,qBAAqB;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B;;;OAGG;IAEH,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACrC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,gBAAiB,YAAW,MAAM,CAAC,qBAAqB,CAAC;IACpE,EAAE,SAAgB;IAClB,KAAK,EAAE,qBAAqB,CAAC;IAC7B,SAAS,EAAE,eAAe,CAAc;IAExC,IAAI,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IACjB,OAAO,CAAC,EAAE,cAAc,CAAC;IAEzB,UAAU,EAAE,OAAO,CAAS;gBAEhB,KAAK,EAAE,qBAAqB;IASxC,KAAK,CAAC,EAAC,IAAI,EAAC,EAAE;QAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAA;KAAC,GAAG,cAAc;IAehD,QAAQ;IAMR,OAAO,CAAC,MAAM;IAiBd,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,qBAAqB,CAAC;IAwB9C,YAAY;IAIZ,kBAAkB;IASZ,WAAW;IASX,iBAAiB;IASjB,cAAc;IAQpB,sBAAsB;CAGvB"}
@@ -38,11 +38,11 @@ export declare class ZoomWidget implements Widget<ZoomWidgetProps> {
38
38
  orientation: 'vertical' | 'horizontal';
39
39
  viewId?: string | null;
40
40
  viewport?: Viewport;
41
- deck?: Deck;
41
+ deck?: Deck<any>;
42
42
  element?: HTMLDivElement;
43
43
  constructor(props: ZoomWidgetProps);
44
44
  onAdd({ deck }: {
45
- deck: Deck;
45
+ deck: Deck<any>;
46
46
  }): HTMLDivElement;
47
47
  onRemove(): void;
48
48
  setProps(props: Partial<ZoomWidgetProps>): void;
@@ -1 +1 @@
1
- {"version":3,"file":"zoom-widget.d.ts","sourceRoot":"","sources":["../src/zoom-widget.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,eAAe,EAAC,MAAM,eAAe,CAAC;AAI3E,UAAU,eAAe;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;OAEG;IACH,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACxC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACrC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,UAAW,YAAW,MAAM,CAAC,eAAe,CAAC;IACxD,EAAE,SAAU;IACZ,KAAK,EAAE,eAAe,CAAC;IACvB,SAAS,EAAE,eAAe,CAAc;IACxC,WAAW,EAAE,UAAU,GAAG,YAAY,CAAc;IACpD,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC9B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,OAAO,CAAC,EAAE,cAAc,CAAC;gBAEb,KAAK,EAAE,eAAe;IAYlC,KAAK,CAAC,EAAC,IAAI,EAAC,EAAE;QAAC,IAAI,EAAE,IAAI,CAAA;KAAC,GAAG,cAAc;IA8B3C,QAAQ;IAKR,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,eAAe,CAAC;IAIxC,gBAAgB,CAAC,QAAQ,KAAA;IAIzB,UAAU,CAAC,QAAQ,EAAE,MAAM;IAY3B,YAAY;IAMZ,aAAa;CAKd"}
1
+ {"version":3,"file":"zoom-widget.d.ts","sourceRoot":"","sources":["../src/zoom-widget.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,eAAe,EAAC,MAAM,eAAe,CAAC;AAI3E,UAAU,eAAe;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;OAEG;IACH,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACxC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACrC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,UAAW,YAAW,MAAM,CAAC,eAAe,CAAC;IACxD,EAAE,SAAU;IACZ,KAAK,EAAE,eAAe,CAAC;IACvB,SAAS,EAAE,eAAe,CAAc;IACxC,WAAW,EAAE,UAAU,GAAG,YAAY,CAAc;IACpD,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC9B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,IAAI,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IACjB,OAAO,CAAC,EAAE,cAAc,CAAC;gBAEb,KAAK,EAAE,eAAe;IAYlC,KAAK,CAAC,EAAC,IAAI,EAAC,EAAE;QAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAA;KAAC,GAAG,cAAc;IA8BhD,QAAQ;IAKR,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,eAAe,CAAC;IAIxC,gBAAgB,CAAC,QAAQ,KAAA;IAIzB,UAAU,CAAC,QAAQ,EAAE,MAAM;IAY3B,YAAY;IAMZ,aAAa;CAKd"}
package/dist.min.js CHANGED
@@ -4,6 +4,6 @@
4
4
  else if (typeof define === 'function' && define.amd) define([], factory);
5
5
  else if (typeof exports === 'object') exports['deck'] = factory();
6
6
  else root['deck'] = factory();})(globalThis, function () {
7
- "use strict";var __exports__=(()=>{var xe=Object.create;var B=Object.defineProperty;var Ce=Object.getOwnPropertyDescriptor;var Pe=Object.getOwnPropertyNames;var Le=Object.getPrototypeOf,De=Object.prototype.hasOwnProperty;var Se=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),We=(t,e)=>{for(var n in e)B(t,n,{get:e[n],enumerable:!0})},U=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Pe(e))!De.call(t,s)&&s!==n&&B(t,s,{get:()=>e[s],enumerable:!(i=Ce(e,s))||i.enumerable});return t},L=(t,e,n)=>(U(t,e,"default"),n&&U(n,e,"default")),M=(t,e,n)=>(n=t!=null?xe(Le(t)):{},U(e||!t||!t.__esModule?B(n,"default",{value:t,enumerable:!0}):n,t)),Fe=t=>U(B({},"__esModule",{value:!0}),t);var I=Se((Ge,oe)=>{oe.exports=globalThis.deck});var V={};We(V,{CompassWidget:()=>X,DarkGlassTheme:()=>Re,DarkTheme:()=>Ue,FullscreenWidget:()=>q,LightGlassTheme:()=>Be,LightTheme:()=>Ze,ZoomWidget:()=>J});var C={},ie=M(I(),1);L(C,M(I(),1));if(!ie.Layer)throw new Error("@deck.gl/core is not found");L(V,C);var ke=M(I(),1);var $,p,_e,Ee,S,re,ue,K,Ie,N={},de=[],Ne=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Y=Array.isArray;function D(t,e){for(var n in e)t[n]=e[n];return t}function pe(t){var e=t.parentNode;e&&e.removeChild(t)}function Te(t,e,n){var i,s,r,l={};for(r in e)r=="key"?i=e[r]:r=="ref"?s=e[r]:l[r]=e[r];if(arguments.length>2&&(l.children=arguments.length>3?$.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(r in t.defaultProps)l[r]===void 0&&(l[r]=t.defaultProps[r]);return R(t,l,i,s,null)}function R(t,e,n,i,s){var r={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:s??++_e};return s==null&&p.vnode!=null&&p.vnode(r),r}function H(t){return t.children}function A(t,e){this.props=t,this.context=e}function O(t,e){if(e==null)return t.__?O(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?O(t):null}function fe(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return fe(t)}}function se(t){(!t.__d&&(t.__d=!0)&&S.push(t)&&!G.__r++||re!==p.debounceRendering)&&((re=p.debounceRendering)||ue)(G)}function G(){var t,e,n,i,s,r,l,c,_;for(S.sort(K);t=S.shift();)t.__d&&(e=S.length,i=void 0,s=void 0,r=void 0,c=(l=(n=t).__v).__e,(_=n.__P)&&(i=[],s=[],(r=D({},l)).__v=l.__v+1,ee(_,l,r,n.__n,_.ownerSVGElement!==void 0,l.__h!=null?[c]:null,i,c??O(l),l.__h,s),ve(i,l,s),l.__e!=c&&fe(l)),S.length>e&&S.sort(K));G.__r=0}function he(t,e,n,i,s,r,l,c,_,y,h){var o,b,u,a,d,F,f,g,x,k=0,v=i&&i.__k||de,z=v.length,P=z,E=e.length;for(n.__k=[],o=0;o<E;o++)(a=n.__k[o]=(a=e[o])==null||typeof a=="boolean"||typeof a=="function"?null:typeof a=="string"||typeof a=="number"||typeof a=="bigint"?R(null,a,null,null,a):Y(a)?R(H,{children:a},null,null,null):a.__b>0?R(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a)!=null?(a.__=n,a.__b=n.__b+1,(g=ze(a,v,f=o+k,P))===-1?u=N:(u=v[g]||N,v[g]=void 0,P--),ee(t,a,u,s,r,l,c,_,y,h),d=a.__e,(b=a.ref)&&u.ref!=b&&(u.ref&&te(u.ref,null,a),h.push(b,a.__c||d,a)),d!=null&&(F==null&&(F=d),(x=u===N||u.__v===null)?g==-1&&k--:g!==f&&(g===f+1?k++:g>f?P>E-f?k+=g-f:k--:k=g<f&&g==f-1?g-f:0),f=o+k,typeof a.type!="function"||g===f&&u.__k!==a.__k?typeof a.type=="function"||g===f&&!x?a.__d!==void 0?(_=a.__d,a.__d=void 0):_=d.nextSibling:_=ge(t,d,_):_=me(a,_,t),typeof n.type=="function"&&(n.__d=_))):(u=v[o])&&u.key==null&&u.__e&&(u.__e==_&&(_=O(u)),Q(u,u,!1));for(n.__e=F,o=z;o--;)v[o]!=null&&(typeof n.type=="function"&&v[o].__e!=null&&v[o].__e==n.__d&&(n.__d=v[o].__e.nextSibling),Q(v[o],v[o]))}function me(t,e,n){for(var i,s=t.__k,r=0;s&&r<s.length;r++)(i=s[r])&&(i.__=t,e=typeof i.type=="function"?me(i,e,n):ge(n,i.__e,e));return e}function ge(t,e,n){return n==null||n.parentNode!==t?t.insertBefore(e,null):e==n&&e.parentNode!=null||t.insertBefore(e,n),e.nextSibling}function ze(t,e,n,i){var s=t.key,r=t.type,l=n-1,c=n+1,_=e[n];if(_===null||_&&s==_.key&&r===_.type)return n;if(i>(_!=null?1:0))for(;l>=0||c<e.length;){if(l>=0){if((_=e[l])&&s==_.key&&r===_.type)return l;l--}if(c<e.length){if((_=e[c])&&s==_.key&&r===_.type)return c;c++}}return-1}function Me(t,e,n,i,s){var r;for(r in n)r==="children"||r==="key"||r in e||j(t,r,null,n[r],i);for(r in e)s&&typeof e[r]!="function"||r==="children"||r==="key"||r==="value"||r==="checked"||n[r]===e[r]||j(t,r,e[r],n[r],i)}function le(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||Ne.test(e)?n:n+"px"}function j(t,e,n,i,s){var r;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof i=="string"&&(t.style.cssText=i=""),i)for(e in i)n&&e in n||le(t.style,e,"");if(n)for(e in n)i&&n[e]===i[e]||le(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")r=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+r]=n,n?i||t.addEventListener(e,r?ce:ae,r):t.removeEventListener(e,r?ce:ae,r);else if(e!=="dangerouslySetInnerHTML"){if(s)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e!=="rowSpan"&&e!=="colSpan"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e[4]!=="-"?t.removeAttribute(e):t.setAttribute(e,n))}}function ae(t){return this.l[t.type+!1](p.event?p.event(t):t)}function ce(t){return this.l[t.type+!0](p.event?p.event(t):t)}function ee(t,e,n,i,s,r,l,c,_,y){var h,o,b,u,a,d,F,f,g,x,k,v,z,P,E,w=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(_=n.__h,c=e.__e=n.__e,e.__h=null,r=[c]),(h=p.__b)&&h(e);e:if(typeof w=="function")try{if(f=e.props,g=(h=w.contextType)&&i[h.__c],x=h?g?g.props.value:h.__:i,n.__c?F=(o=e.__c=n.__c).__=o.__E:("prototype"in w&&w.prototype.render?e.__c=o=new w(f,x):(e.__c=o=new A(f,x),o.constructor=w,o.render=He),g&&g.sub(o),o.props=f,o.state||(o.state={}),o.context=x,o.__n=i,b=o.__d=!0,o.__h=[],o._sb=[]),o.__s==null&&(o.__s=o.state),w.getDerivedStateFromProps!=null&&(o.__s==o.state&&(o.__s=D({},o.__s)),D(o.__s,w.getDerivedStateFromProps(f,o.__s))),u=o.props,a=o.state,o.__v=e,b)w.getDerivedStateFromProps==null&&o.componentWillMount!=null&&o.componentWillMount(),o.componentDidMount!=null&&o.__h.push(o.componentDidMount);else{if(w.getDerivedStateFromProps==null&&f!==u&&o.componentWillReceiveProps!=null&&o.componentWillReceiveProps(f,x),!o.__e&&(o.shouldComponentUpdate!=null&&o.shouldComponentUpdate(f,o.__s,x)===!1||e.__v===n.__v)){for(e.__v!==n.__v&&(o.props=f,o.state=o.__s,o.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(Z){Z&&(Z.__=e)}),k=0;k<o._sb.length;k++)o.__h.push(o._sb[k]);o._sb=[],o.__h.length&&l.push(o);break e}o.componentWillUpdate!=null&&o.componentWillUpdate(f,o.__s,x),o.componentDidUpdate!=null&&o.__h.push(function(){o.componentDidUpdate(u,a,d)})}if(o.context=x,o.props=f,o.__P=t,o.__e=!1,v=p.__r,z=0,"prototype"in w&&w.prototype.render){for(o.state=o.__s,o.__d=!1,v&&v(e),h=o.render(o.props,o.state,o.context),P=0;P<o._sb.length;P++)o.__h.push(o._sb[P]);o._sb=[]}else do o.__d=!1,v&&v(e),h=o.render(o.props,o.state,o.context),o.state=o.__s;while(o.__d&&++z<25);o.state=o.__s,o.getChildContext!=null&&(i=D(D({},i),o.getChildContext())),b||o.getSnapshotBeforeUpdate==null||(d=o.getSnapshotBeforeUpdate(u,a)),he(t,Y(E=h!=null&&h.type===H&&h.key==null?h.props.children:h)?E:[E],e,n,i,s,r,l,c,_,y),o.base=e.__e,e.__h=null,o.__h.length&&l.push(o),F&&(o.__E=o.__=null)}catch(Z){e.__v=null,(_||r!=null)&&(e.__e=c,e.__h=!!_,r[r.indexOf(c)]=null),p.__e(Z,e,n)}else r==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=Oe(n.__e,e,n,i,s,r,l,_,y);(h=p.diffed)&&h(e)}function ve(t,e,n){for(var i=0;i<n.length;i++)te(n[i],n[++i],n[++i]);p.__c&&p.__c(e,t),t.some(function(s){try{t=s.__h,s.__h=[],t.some(function(r){r.call(s)})}catch(r){p.__e(r,s.__v)}})}function Oe(t,e,n,i,s,r,l,c,_){var y,h,o,b=n.props,u=e.props,a=e.type,d=0;if(a==="svg"&&(s=!0),r!=null){for(;d<r.length;d++)if((y=r[d])&&"setAttribute"in y==!!a&&(a?y.localName===a:y.nodeType===3)){t=y,r[d]=null;break}}if(t==null){if(a===null)return document.createTextNode(u);t=s?document.createElementNS("http://www.w3.org/2000/svg",a):document.createElement(a,u.is&&u),r=null,c=!1}if(a===null)b===u||c&&t.data===u||(t.data=u);else{if(r=r&&$.call(t.childNodes),h=(b=n.props||N).dangerouslySetInnerHTML,o=u.dangerouslySetInnerHTML,!c){if(r!=null)for(b={},d=0;d<t.attributes.length;d++)b[t.attributes[d].name]=t.attributes[d].value;(o||h)&&(o&&(h&&o.__html==h.__html||o.__html===t.innerHTML)||(t.innerHTML=o&&o.__html||""))}if(Me(t,u,b,s,c),o)e.__k=[];else if(he(t,Y(d=e.props.children)?d:[d],e,n,i,s&&a!=="foreignObject",r,l,r?r[0]:n.__k&&O(n,0),c,_),r!=null)for(d=r.length;d--;)r[d]!=null&&pe(r[d]);c||("value"in u&&(d=u.value)!==void 0&&(d!==t.value||a==="progress"&&!d||a==="option"&&d!==b.value)&&j(t,"value",d,b.value,!1),"checked"in u&&(d=u.checked)!==void 0&&d!==t.checked&&j(t,"checked",d,b.checked,!1))}return t}function te(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(i){p.__e(i,n)}}function Q(t,e,n){var i,s;if(p.unmount&&p.unmount(t),(i=t.ref)&&(i.current&&i.current!==t.__e||te(i,null,e)),(i=t.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(r){p.__e(r,e)}i.base=i.__P=null,t.__c=void 0}if(i=t.__k)for(s=0;s<i.length;s++)i[s]&&Q(i[s],e,n||typeof t.type!="function");n||t.__e==null||pe(t.__e),t.__=t.__e=t.__d=void 0}function He(t,e,n){return this.constructor(t,n)}function T(t,e,n){var i,s,r,l;p.__&&p.__(t,e),s=(i=typeof n=="function")?null:n&&n.__k||e.__k,r=[],l=[],ee(e,t=(!i&&n||e).__k=Te(H,null,[t]),s||N,N,e.ownerSVGElement!==void 0,!i&&n?[n]:s?null:e.firstChild?$.call(e.childNodes):null,r,!i&&n?n:s?s.__e:e.firstChild,i,l),ve(r,t,l)}$=de.slice,p={__e:function(t,e,n,i){for(var s,r,l;e=e.__;)if((s=e.__c)&&!s.__)try{if((r=s.constructor)&&r.getDerivedStateFromError!=null&&(s.setState(r.getDerivedStateFromError(t)),l=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(t,i||{}),l=s.__d),l)return s.__E=s}catch(c){t=c}throw t}},_e=0,Ee=function(t){return t!=null&&t.constructor===void 0},A.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=D({},this.state),typeof t=="function"&&(t=t(D({},n),this.props)),t&&D(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),se(this))},A.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),se(this))},A.prototype.render=H,S=[],ue=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,K=function(t,e){return t.__v.__b-e.__v.__b},G.__r=0,Ie=0;var Ve=0;function m(t,e,n,i,s,r){var l,c,_={};for(c in e)c=="ref"?l=e[c]:_[c]=e[c];var y={type:t,props:_,key:n,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Ve,__source:s,__self:r};if(typeof t=="function"&&(l=t.defaultProps))for(c in l)_[c]===void 0&&(_[c]=l[c]);return p.vnode&&p.vnode(y),y}var be=t=>{let{className:e,label:n,onClick:i}=t;return m("div",{className:"deck-widget-button",children:m("button",{className:`deck-widget-icon-button ${e}`,type:"button",onClick:i,title:n,children:m("div",{className:"deck-widget-icon"})})})},ye=t=>{let{children:e,orientation:n}=t;return m("div",{className:`deck-widget-button-group ${n}`,children:e})},ne=t=>{let{className:e,label:n,onClick:i}=t;return m("button",{className:`deck-widget-icon-button ${e}`,type:"button",onClick:i,title:n,children:m("div",{className:"deck-widget-icon"})})};var q=class{constructor(e){this.id="fullscreen";this.placement="top-left";this.fullscreen=!1;this.id=e.id||"fullscreen",this.placement=e.placement||"top-left",e.enterLabel=e.enterLabel||"Enter Fullscreen",e.exitLabel=e.exitLabel||"Exit Fullscreen",e.style=e.style||{},this.props=e}onAdd({deck:e}){let{style:n,className:i}=this.props,s=document.createElement("div");return s.classList.add("deck-widget","deck-widget-fullscreen"),i&&s.classList.add(i),n&&Object.entries(n).map(([r,l])=>s.style.setProperty(r,l)),this.deck=e,this.element=s,this.update(),document.addEventListener("fullscreenchange",this.onFullscreenChange.bind(this)),s}onRemove(){this.deck=void 0,this.element=void 0,document.removeEventListener("fullscreenchange",this.onFullscreenChange.bind(this))}update(){let{enterLabel:e,exitLabel:n}=this.props,i=this.element;if(!i)return;let s=m(be,{onClick:this.handleClick.bind(this),label:this.fullscreen?n:e,className:this.fullscreen?"deck-widget-fullscreen-exit":"deck-widget-fullscreen-enter"});T(s,i)}setProps(e){let n=this.props,i=this.element;i&&(n.className!==e.className&&(n.className&&i.classList.remove(n.className),e.className&&i.classList.add(e.className)),(0,ke._deepEqual)(n.style,e.style,1)||(n.style&&Object.entries(n.style).map(([s])=>i.style.removeProperty(s)),e.style&&Object.entries(e.style).map(([s,r])=>i.style.setProperty(s,r)))),Object.assign(this.props,e)}getContainer(){return this.props.container||this.deck?.getCanvas()?.parentElement}onFullscreenChange(){let e=this.fullscreen,n=document.fullscreenElement===this.getContainer();e!==n&&(this.fullscreen=!this.fullscreen),this.update()}async handleClick(){this.fullscreen?await this.exitFullscreen():await this.requestFullscreen(),this.update()}async requestFullscreen(){let e=this.getContainer();e?.requestFullscreen?await e.requestFullscreen({navigationUI:"hide"}):this.togglePseudoFullscreen()}async exitFullscreen(){document.exitFullscreen?await document.exitFullscreen():this.togglePseudoFullscreen()}togglePseudoFullscreen(){this.getContainer()?.classList.toggle("deck-pseudo-fullscreen")}};var W=M(I(),1);var X=class{constructor(e){this.id="compass";this.placement="top-left";this.viewId=null;this.id=e.id||"compass",this.viewId=e.viewId||null,this.placement=e.placement||"top-left",e.transitionDuration=e.transitionDuration||200,e.label=e.label||"Compass",e.style=e.style||{},this.props=e}setProps(e){Object.assign(this.props,e)}onViewportChange(e){this.viewport=e,this.update()}onAdd({deck:e}){let{style:n,className:i}=this.props,s=document.createElement("div");return s.classList.add("deck-widget","deck-widget-compass"),i&&s.classList.add(i),n&&Object.entries(n).map(([r,l])=>s.style.setProperty(r,l)),this.deck=e,this.element=s,this.update(),s}getRotation(){return this.viewport instanceof W.WebMercatorViewport?[-this.viewport.bearing,this.viewport.pitch]:this.viewport instanceof W._GlobeViewport?[0,Math.max(-80,Math.min(80,this.viewport.latitude))]:[0,0]}update(){let[e,n]=this.getRotation(),i=this.element;if(!i)return;let s=m("div",{className:"deck-widget-button",style:{perspective:100},children:m("button",{type:"button",onClick:()=>this.handleCompassReset(),label:this.props.label,style:{transform:`rotateX(${n}deg)`},children:m("svg",{fill:"none",width:"100%",height:"100%",viewBox:"0 0 26 26",children:m("g",{transform:`rotate(${e},13,13)`,children:[m("path",{d:"M10 13.0001L12.9999 5L15.9997 13.0001H10Z",fill:"var(--icon-compass-north-color, #F05C44)"}),m("path",{d:"M16.0002 12.9999L13.0004 21L10.0005 12.9999H16.0002Z",fill:"var(--icon-compass-south-color, #C2C2CC)"})]})})})});T(s,i)}onRemove(){this.deck=void 0,this.element=void 0}handleCompassReset(){let e=this.viewId||"default-view";if(this.viewport instanceof W.WebMercatorViewport){let n={...this.viewport,bearing:0,...this.getRotation()[0]===0?{pitch:0}:{},transitionDuration:this.props.transitionDuration,transitionInterpolator:new W.FlyToInterpolator};this.deck._onViewStateChange({viewId:e,viewState:n,interactionState:{}})}}};var we=M(I(),1);var J=class{constructor(e){this.id="zoom";this.placement="top-left";this.orientation="vertical";this.viewId=null;this.id=e.id||"zoom",this.viewId=e.viewId||null,this.placement=e.placement||"top-left",this.orientation=e.orientation||"vertical",e.transitionDuration=e.transitionDuration||200,e.zoomInLabel=e.zoomInLabel||"Zoom In",e.zoomOutLabel=e.zoomOutLabel||"Zoom Out",e.style=e.style||{},this.props=e}onAdd({deck:e}){let{style:n,className:i}=this.props,s=document.createElement("div");s.classList.add("deck-widget","deck-widget-zoom"),i&&s.classList.add(i),n&&Object.entries(n).map(([l,c])=>s.style.setProperty(l,c));let r=m(ye,{orientation:this.orientation,children:[m(ne,{onClick:()=>this.handleZoomIn(),label:this.props.zoomInLabel,className:"deck-widget-zoom-in"}),m(ne,{onClick:()=>this.handleZoomOut(),label:this.props.zoomOutLabel,className:"deck-widget-zoom-out"})]});return T(r,s),this.deck=e,this.element=s,s}onRemove(){this.deck=void 0,this.element=void 0}setProps(e){Object.assign(this.props,e)}onViewportChange(e){this.viewport=e}handleZoom(e){let n=this.viewId||"default-view",i={...this.viewport,zoom:e,transitionDuration:this.props.transitionDuration,transitionInterpolator:new we.FlyToInterpolator};this.deck._onViewStateChange({viewId:n,viewState:i,interactionState:{}})}handleZoomIn(){this.viewport&&this.handleZoom(this.viewport.zoom+1)}handleZoomOut(){this.viewport&&this.handleZoom(this.viewport.zoom-1)}};var Ze={"--button-background":"#fff","--button-stroke":"rgba(255, 255, 255, 0.3)","--button-inner-stroke":"unset","--button-shadow":"0px 0px 8px 0px rgba(0, 0, 0, 0.25)","--button-backdrop-filter":"unset","--button-icon-idle":"rgba(97, 97, 102, 1)","--button-icon-hover":"rgba(24, 24, 26, 1)","--icon-compass-north-color":"#F05C44","--icon-compass-south-color":"#C2C2CC"},Ue={"--button-background":"rgba(18, 18, 20, 1)","--button-stroke":"rgba(18, 18, 20, 0.30)","--button-inner-stroke":"unset","--button-shadow":"0px 0px 8px 0px rgba(0, 0, 0, 0.25)","--button-backdrop-filter":"unset","--button-icon-idle":"rgba(158, 157, 168, 1)","--button-icon-hover":"rgba(215, 214, 229, 1)","--icon-compass-north-color":"#F05C44","--icon-compass-south-color":"#C2C2CC"},Be={"--button-background":"rgba(255, 255, 255, 0.6)","--button-stroke":"rgba(255, 255, 255, 0.3)","--button-inner-stroke":"1px solid rgba(255, 255, 255, 0.6)","--button-shadow":"0px 0px 8px 0px rgba(0, 0, 0, 0.25), 0px 0px 8px 0px rgba(0, 0, 0, 0.1) inset","--button-backdrop-filter":"blur(4px)","--button-icon-idle":"rgba(97, 97, 102, 1)","--button-icon-hover":"rgba(24, 24, 26, 1)","--icon-compass-north-color":"#F05C44","--icon-compass-south-color":"#C2C2CC"},Re={"--button-background":"rgba(18, 18, 20, 0.75)","--button-stroke":"rgba(18, 18, 20, 0.30)","--button-inner-stroke":"1px solid rgba(18, 18, 20, 0.75)","--button-shadow":"0px 0px 8px 0px rgba(0, 0, 0, 0.25), 0px 0px 8px 0px rgba(0, 0, 0, 0.1) inset","--button-backdrop-filter":"blur(4px)","--button-icon-idle":"rgba(158, 157, 168, 1)","--button-icon-hover":"rgba(215, 214, 229, 1)","--icon-compass-north-color":"#F05C44","--icon-compass-south-color":"#C2C2CC"};return Fe(V);})();
7
+ "use strict";var __exports__=(()=>{var we=Object.create;var A=Object.defineProperty;var xe=Object.getOwnPropertyDescriptor;var Ce=Object.getOwnPropertyNames;var Pe=Object.getPrototypeOf,Le=Object.prototype.hasOwnProperty;var De=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),We=(t,e)=>{for(var n in e)A(t,n,{get:e[n],enumerable:!0})},Z=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Ce(e))!Le.call(t,o)&&o!==n&&A(t,o,{get:()=>e[o],enumerable:!(i=xe(e,o))||i.enumerable});return t},C=(t,e,n)=>(Z(t,e,"default"),n&&Z(n,e,"default")),N=(t,e,n)=>(n=t!=null?we(Pe(t)):{},Z(e||!t||!t.__esModule?A(n,"default",{value:t,enumerable:!0}):n,t)),Fe=t=>Z(A({},"__esModule",{value:!0}),t);var F=De(($e,oe)=>{oe.exports=globalThis.deck});var z={};We(z,{CompassWidget:()=>G,DarkGlassTheme:()=>je,DarkTheme:()=>Ae,FullscreenWidget:()=>B,LightGlassTheme:()=>Ve,LightTheme:()=>Ze,ZoomWidget:()=>q});var w={},ie=N(F(),1);C(w,N(F(),1));if(!ie.Layer)throw new Error("@deck.gl/core is not found");C(z,w);var ye=N(F(),1);var R,p,_e,Se,L,re,ue,J,Ee,T={},de=[],Ie=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Q=Array.isArray;function P(t,e){for(var n in e)t[n]=e[n];return t}function pe(t){var e=t.parentNode;e&&e.removeChild(t)}function Ne(t,e,n){var i,o,s,l={};for(s in e)s=="key"?i=e[s]:s=="ref"?o=e[s]:l[s]=e[s];if(arguments.length>2&&(l.children=arguments.length>3?R.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(s in t.defaultProps)l[s]===void 0&&(l[s]=t.defaultProps[s]);return j(t,l,i,o,null)}function j(t,e,n,i,o){var s={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++_e,__i:-1,__u:0};return o==null&&p.vnode!=null&&p.vnode(s),s}function S(t){return t.children}function U(t,e){this.props=t,this.context=e}function D(t,e){if(e==null)return t.__?D(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?D(t):null}function fe(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return fe(t)}}function se(t){(!t.__d&&(t.__d=!0)&&L.push(t)&&!$.__r++||re!==p.debounceRendering)&&((re=p.debounceRendering)||ue)($)}function $(){var t,e,n,i,o,s,l,a,_;for(L.sort(J);t=L.shift();)t.__d&&(e=L.length,i=void 0,s=(o=(n=t).__v).__e,a=[],_=[],(l=n.__P)&&((i=P({},o)).__v=o.__v+1,p.vnode&&p.vnode(i),Y(l,i,o,n.__n,l.ownerSVGElement!==void 0,32&o.__u?[s]:null,a,s??D(o),!!(32&o.__u),_),i.__v=o.__v,i.__.__k[i.__i]=i,ge(a,i,_),i.__e!=s&&fe(i)),L.length>e&&L.sort(J));$.__r=0}function he(t,e,n,i,o,s,l,a,_,c,d){var r,g,u,m,k,v=i&&i.__k||de,f=e.length;for(n.__d=_,Te(n,e,v),_=n.__d,r=0;r<f;r++)(u=n.__k[r])!=null&&typeof u!="boolean"&&typeof u!="function"&&(g=u.__i===-1?T:v[u.__i]||T,u.__i=r,Y(t,u,g,o,s,l,a,_,c,d),m=u.__e,u.ref&&g.ref!=u.ref&&(g.ref&&ee(g.ref,null,u),d.push(u.ref,u.__c||m,u)),k==null&&m!=null&&(k=m),65536&u.__u||g.__k===u.__k?(m||g.__e!=_||(_=D(g)),_=me(u,_,t)):typeof u.type=="function"&&u.__d!==void 0?_=u.__d:m&&(_=m.nextSibling),u.__d=void 0,u.__u&=-196609);n.__d=_,n.__e=k}function Te(t,e,n){var i,o,s,l,a,_=e.length,c=n.length,d=c,r=0;for(t.__k=[],i=0;i<_;i++)l=i+r,(o=t.__k[i]=(o=e[i])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?j(null,o,null,null,null):Q(o)?j(S,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?j(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=t,o.__b=t.__b+1,a=ze(o,n,l,d),o.__i=a,s=null,a!==-1&&(d--,(s=n[a])&&(s.__u|=131072)),s==null||s.__v===null?(a==-1&&r--,typeof o.type!="function"&&(o.__u|=65536)):a!==l&&(a===l+1?r++:a>l?d>_-l?r+=a-l:r--:a<l?a==l-1&&(r=a-l):r=0,a!==i+r&&(o.__u|=65536))):(s=n[l])&&s.key==null&&s.__e&&!(131072&s.__u)&&(s.__e==t.__d&&(t.__d=D(s)),K(s,s,!1),n[l]=null,d--);if(d)for(i=0;i<c;i++)(s=n[i])!=null&&!(131072&s.__u)&&(s.__e==t.__d&&(t.__d=D(s)),K(s,s))}function me(t,e,n){var i,o;if(typeof t.type=="function"){for(i=t.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=t,e=me(i[o],e,n));return e}t.__e!=e&&(n.insertBefore(t.__e,e||null),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType===8);return e}function ze(t,e,n,i){var o=t.key,s=t.type,l=n-1,a=n+1,_=e[n];if(_===null||_&&o==_.key&&s===_.type&&!(131072&_.__u))return n;if(i>(_!=null&&!(131072&_.__u)?1:0))for(;l>=0||a<e.length;){if(l>=0){if((_=e[l])&&!(131072&_.__u)&&o==_.key&&s===_.type)return l;l--}if(a<e.length){if((_=e[a])&&!(131072&_.__u)&&o==_.key&&s===_.type)return a;a++}}return-1}function le(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||Ie.test(e)?n:n+"px"}function V(t,e,n,i,o){var s;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof i=="string"&&(t.style.cssText=i=""),i)for(e in i)n&&e in n||le(t.style,e,"");if(n)for(e in n)i&&n[e]===i[e]||le(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")s=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+s]=n,n?i?n.u=i.u:(n.u=Date.now(),t.addEventListener(e,s?ce:ae,s)):t.removeEventListener(e,s?ce:ae,s);else{if(o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e!=="rowSpan"&&e!=="colSpan"&&e!=="role"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e[4]!=="-"?t.removeAttribute(e):t.setAttribute(e,n))}}function ae(t){if(this.l){var e=this.l[t.type+!1];if(t.t){if(t.t<=e.u)return}else t.t=Date.now();return e(p.event?p.event(t):t)}}function ce(t){if(this.l)return this.l[t.type+!0](p.event?p.event(t):t)}function Y(t,e,n,i,o,s,l,a,_,c){var d,r,g,u,m,k,v,f,b,x,M,I,ne,O,X,y=e.type;if(e.constructor!==void 0)return null;128&n.__u&&(_=!!(32&n.__u),s=[a=e.__e=n.__e]),(d=p.__b)&&d(e);e:if(typeof y=="function")try{if(f=e.props,b=(d=y.contextType)&&i[d.__c],x=d?b?b.props.value:d.__:i,n.__c?v=(r=e.__c=n.__c).__=r.__E:("prototype"in y&&y.prototype.render?e.__c=r=new y(f,x):(e.__c=r=new U(f,x),r.constructor=y,r.render=Oe),b&&b.sub(r),r.props=f,r.state||(r.state={}),r.context=x,r.__n=i,g=r.__d=!0,r.__h=[],r._sb=[]),r.__s==null&&(r.__s=r.state),y.getDerivedStateFromProps!=null&&(r.__s==r.state&&(r.__s=P({},r.__s)),P(r.__s,y.getDerivedStateFromProps(f,r.__s))),u=r.props,m=r.state,r.__v=e,g)y.getDerivedStateFromProps==null&&r.componentWillMount!=null&&r.componentWillMount(),r.componentDidMount!=null&&r.__h.push(r.componentDidMount);else{if(y.getDerivedStateFromProps==null&&f!==u&&r.componentWillReceiveProps!=null&&r.componentWillReceiveProps(f,x),!r.__e&&(r.shouldComponentUpdate!=null&&r.shouldComponentUpdate(f,r.__s,x)===!1||e.__v===n.__v)){for(e.__v!==n.__v&&(r.props=f,r.state=r.__s,r.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(H){H&&(H.__=e)}),M=0;M<r._sb.length;M++)r.__h.push(r._sb[M]);r._sb=[],r.__h.length&&l.push(r);break e}r.componentWillUpdate!=null&&r.componentWillUpdate(f,r.__s,x),r.componentDidUpdate!=null&&r.__h.push(function(){r.componentDidUpdate(u,m,k)})}if(r.context=x,r.props=f,r.__P=t,r.__e=!1,I=p.__r,ne=0,"prototype"in y&&y.prototype.render){for(r.state=r.__s,r.__d=!1,I&&I(e),d=r.render(r.props,r.state,r.context),O=0;O<r._sb.length;O++)r.__h.push(r._sb[O]);r._sb=[]}else do r.__d=!1,I&&I(e),d=r.render(r.props,r.state,r.context),r.state=r.__s;while(r.__d&&++ne<25);r.state=r.__s,r.getChildContext!=null&&(i=P(P({},i),r.getChildContext())),g||r.getSnapshotBeforeUpdate==null||(k=r.getSnapshotBeforeUpdate(u,m)),he(t,Q(X=d!=null&&d.type===S&&d.key==null?d.props.children:d)?X:[X],e,n,i,o,s,l,a,_,c),r.base=e.__e,e.__u&=-161,r.__h.length&&l.push(r),v&&(r.__E=r.__=null)}catch(H){e.__v=null,_||s!=null?(e.__e=a,e.__u|=_?160:32,s[s.indexOf(a)]=null):(e.__e=n.__e,e.__k=n.__k),p.__e(H,e,n)}else s==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=Me(n.__e,e,n,i,o,s,l,_,c);(d=p.diffed)&&d(e)}function ge(t,e,n){e.__d=void 0;for(var i=0;i<n.length;i++)ee(n[i],n[++i],n[++i]);p.__c&&p.__c(e,t),t.some(function(o){try{t=o.__h,o.__h=[],t.some(function(s){s.call(o)})}catch(s){p.__e(s,o.__v)}})}function Me(t,e,n,i,o,s,l,a,_){var c,d,r,g,u,m,k,v=n.props,f=e.props,b=e.type;if(b==="svg"&&(o=!0),s!=null){for(c=0;c<s.length;c++)if((u=s[c])&&"setAttribute"in u==!!b&&(b?u.localName===b:u.nodeType===3)){t=u,s[c]=null;break}}if(t==null){if(b===null)return document.createTextNode(f);t=o?document.createElementNS("http://www.w3.org/2000/svg",b):document.createElement(b,f.is&&f),s=null,a=!1}if(b===null)v===f||a&&t.data===f||(t.data=f);else{if(s=s&&R.call(t.childNodes),v=n.props||T,!a&&s!=null)for(v={},c=0;c<t.attributes.length;c++)v[(u=t.attributes[c]).name]=u.value;for(c in v)u=v[c],c=="children"||(c=="dangerouslySetInnerHTML"?r=u:c==="key"||c in f||V(t,c,null,u,o));for(c in f)u=f[c],c=="children"?g=u:c=="dangerouslySetInnerHTML"?d=u:c=="value"?m=u:c=="checked"?k=u:c==="key"||a&&typeof u!="function"||v[c]===u||V(t,c,u,v[c],o);if(d)a||r&&(d.__html===r.__html||d.__html===t.innerHTML)||(t.innerHTML=d.__html),e.__k=[];else if(r&&(t.innerHTML=""),he(t,Q(g)?g:[g],e,n,i,o&&b!=="foreignObject",s,l,s?s[0]:n.__k&&D(n,0),a,_),s!=null)for(c=s.length;c--;)s[c]!=null&&pe(s[c]);a||(c="value",m!==void 0&&(m!==t[c]||b==="progress"&&!m||b==="option"&&m!==v[c])&&V(t,c,m,v[c],!1),c="checked",k!==void 0&&k!==t[c]&&V(t,c,k,v[c],!1))}return t}function ee(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(i){p.__e(i,n)}}function K(t,e,n){var i,o;if(p.unmount&&p.unmount(t),(i=t.ref)&&(i.current&&i.current!==t.__e||ee(i,null,e)),(i=t.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(s){p.__e(s,e)}i.base=i.__P=null,t.__c=void 0}if(i=t.__k)for(o=0;o<i.length;o++)i[o]&&K(i[o],e,n||typeof t.type!="function");n||t.__e==null||pe(t.__e),t.__=t.__e=t.__d=void 0}function Oe(t,e,n){return this.constructor(t,n)}function E(t,e,n){var i,o,s,l;p.__&&p.__(t,e),o=(i=typeof n=="function")?null:n&&n.__k||e.__k,s=[],l=[],Y(e,t=(!i&&n||e).__k=Ne(S,null,[t]),o||T,T,e.ownerSVGElement!==void 0,!i&&n?[n]:o?null:e.firstChild?R.call(e.childNodes):null,s,!i&&n?n:o?o.__e:e.firstChild,i,l),ge(s,t,l)}R=de.slice,p={__e:function(t,e,n,i){for(var o,s,l;e=e.__;)if((o=e.__c)&&!o.__)try{if((s=o.constructor)&&s.getDerivedStateFromError!=null&&(o.setState(s.getDerivedStateFromError(t)),l=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(t,i||{}),l=o.__d),l)return o.__E=o}catch(a){t=a}throw t}},_e=0,Se=function(t){return t!=null&&t.constructor==null},U.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=P({},this.state),typeof t=="function"&&(t=t(P({},n),this.props)),t&&P(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),se(this))},U.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),se(this))},U.prototype.render=S,L=[],ue=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,J=function(t,e){return t.__v.__b-e.__v.__b},$.__r=0,Ee=0;var He=0,qe=Array.isArray;function h(t,e,n,i,o,s){var l,a,_={};for(a in e)a=="ref"?l=e[a]:_[a]=e[a];var c={type:t,props:_,key:n,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--He,__i:-1,__u:0,__source:o,__self:s};if(typeof t=="function"&&(l=t.defaultProps))for(a in l)_[a]===void 0&&(_[a]=l[a]);return p.vnode&&p.vnode(c),c}var ve=t=>{let{className:e,label:n,onClick:i}=t;return h("div",{className:"deck-widget-button",children:h("button",{className:`deck-widget-icon-button ${e}`,type:"button",onClick:i,title:n,children:h("div",{className:"deck-widget-icon"})})})},be=t=>{let{children:e,orientation:n}=t;return h("div",{className:`deck-widget-button-group ${n}`,children:e})},te=t=>{let{className:e,label:n,onClick:i}=t;return h("button",{className:`deck-widget-icon-button ${e}`,type:"button",onClick:i,title:n,children:h("div",{className:"deck-widget-icon"})})};var B=class{constructor(e){this.id="fullscreen";this.placement="top-left";this.fullscreen=!1;this.id=e.id||"fullscreen",this.placement=e.placement||"top-left",e.enterLabel=e.enterLabel||"Enter Fullscreen",e.exitLabel=e.exitLabel||"Exit Fullscreen",e.style=e.style||{},this.props=e}onAdd({deck:e}){let{style:n,className:i}=this.props,o=document.createElement("div");return o.classList.add("deck-widget","deck-widget-fullscreen"),i&&o.classList.add(i),n&&Object.entries(n).map(([s,l])=>o.style.setProperty(s,l)),this.deck=e,this.element=o,this.update(),document.addEventListener("fullscreenchange",this.onFullscreenChange.bind(this)),o}onRemove(){this.deck=void 0,this.element=void 0,document.removeEventListener("fullscreenchange",this.onFullscreenChange.bind(this))}update(){let{enterLabel:e,exitLabel:n}=this.props,i=this.element;if(!i)return;let o=h(ve,{onClick:this.handleClick.bind(this),label:this.fullscreen?n:e,className:this.fullscreen?"deck-widget-fullscreen-exit":"deck-widget-fullscreen-enter"});E(o,i)}setProps(e){let n=this.props,i=this.element;i&&(n.className!==e.className&&(n.className&&i.classList.remove(n.className),e.className&&i.classList.add(e.className)),(0,ye._deepEqual)(n.style,e.style,1)||(n.style&&Object.entries(n.style).map(([o])=>i.style.removeProperty(o)),e.style&&Object.entries(e.style).map(([o,s])=>i.style.setProperty(o,s)))),Object.assign(this.props,e)}getContainer(){return this.props.container||this.deck?.getCanvas()?.parentElement}onFullscreenChange(){let e=this.fullscreen,n=document.fullscreenElement===this.getContainer();e!==n&&(this.fullscreen=!this.fullscreen),this.update()}async handleClick(){this.fullscreen?await this.exitFullscreen():await this.requestFullscreen(),this.update()}async requestFullscreen(){let e=this.getContainer();e?.requestFullscreen?await e.requestFullscreen({navigationUI:"hide"}):this.togglePseudoFullscreen()}async exitFullscreen(){document.exitFullscreen?await document.exitFullscreen():this.togglePseudoFullscreen()}togglePseudoFullscreen(){this.getContainer()?.classList.toggle("deck-pseudo-fullscreen")}};var W=N(F(),1);var G=class{constructor(e){this.id="compass";this.placement="top-left";this.viewId=null;this.id=e.id||"compass",this.viewId=e.viewId||null,this.placement=e.placement||"top-left",e.transitionDuration=e.transitionDuration||200,e.label=e.label||"Compass",e.style=e.style||{},this.props=e}setProps(e){Object.assign(this.props,e)}onViewportChange(e){this.viewport=e,this.update()}onAdd({deck:e}){let{style:n,className:i}=this.props,o=document.createElement("div");return o.classList.add("deck-widget","deck-widget-compass"),i&&o.classList.add(i),n&&Object.entries(n).map(([s,l])=>o.style.setProperty(s,l)),this.deck=e,this.element=o,this.update(),o}getRotation(){return this.viewport instanceof W.WebMercatorViewport?[-this.viewport.bearing,this.viewport.pitch]:this.viewport instanceof W._GlobeViewport?[0,Math.max(-80,Math.min(80,this.viewport.latitude))]:[0,0]}update(){let[e,n]=this.getRotation(),i=this.element;if(!i)return;let o=h("div",{className:"deck-widget-button",style:{perspective:100},children:h("button",{type:"button",onClick:()=>this.handleCompassReset(),label:this.props.label,style:{transform:`rotateX(${n}deg)`},children:h("svg",{fill:"none",width:"100%",height:"100%",viewBox:"0 0 26 26",children:h("g",{transform:`rotate(${e},13,13)`,children:[h("path",{d:"M10 13.0001L12.9999 5L15.9997 13.0001H10Z",fill:"var(--icon-compass-north-color, #F05C44)"}),h("path",{d:"M16.0002 12.9999L13.0004 21L10.0005 12.9999H16.0002Z",fill:"var(--icon-compass-south-color, #C2C2CC)"})]})})})});E(o,i)}onRemove(){this.deck=void 0,this.element=void 0}handleCompassReset(){let e=this.viewId||"default-view";if(this.viewport instanceof W.WebMercatorViewport){let n={...this.viewport,bearing:0,...this.getRotation()[0]===0?{pitch:0}:{},transitionDuration:this.props.transitionDuration,transitionInterpolator:new W.FlyToInterpolator};this.deck._onViewStateChange({viewId:e,viewState:n,interactionState:{}})}}};var ke=N(F(),1);var q=class{constructor(e){this.id="zoom";this.placement="top-left";this.orientation="vertical";this.viewId=null;this.id=e.id||"zoom",this.viewId=e.viewId||null,this.placement=e.placement||"top-left",this.orientation=e.orientation||"vertical",e.transitionDuration=e.transitionDuration||200,e.zoomInLabel=e.zoomInLabel||"Zoom In",e.zoomOutLabel=e.zoomOutLabel||"Zoom Out",e.style=e.style||{},this.props=e}onAdd({deck:e}){let{style:n,className:i}=this.props,o=document.createElement("div");o.classList.add("deck-widget","deck-widget-zoom"),i&&o.classList.add(i),n&&Object.entries(n).map(([l,a])=>o.style.setProperty(l,a));let s=h(be,{orientation:this.orientation,children:[h(te,{onClick:()=>this.handleZoomIn(),label:this.props.zoomInLabel,className:"deck-widget-zoom-in"}),h(te,{onClick:()=>this.handleZoomOut(),label:this.props.zoomOutLabel,className:"deck-widget-zoom-out"})]});return E(s,o),this.deck=e,this.element=o,o}onRemove(){this.deck=void 0,this.element=void 0}setProps(e){Object.assign(this.props,e)}onViewportChange(e){this.viewport=e}handleZoom(e){let n=this.viewId||"default-view",i={...this.viewport,zoom:e,transitionDuration:this.props.transitionDuration,transitionInterpolator:new ke.FlyToInterpolator};this.deck._onViewStateChange({viewId:n,viewState:i,interactionState:{}})}handleZoomIn(){this.viewport&&this.handleZoom(this.viewport.zoom+1)}handleZoomOut(){this.viewport&&this.handleZoom(this.viewport.zoom-1)}};var Ze={"--button-background":"#fff","--button-stroke":"rgba(255, 255, 255, 0.3)","--button-inner-stroke":"unset","--button-shadow":"0px 0px 8px 0px rgba(0, 0, 0, 0.25)","--button-backdrop-filter":"unset","--button-icon-idle":"rgba(97, 97, 102, 1)","--button-icon-hover":"rgba(24, 24, 26, 1)","--icon-compass-north-color":"#F05C44","--icon-compass-south-color":"#C2C2CC"},Ae={"--button-background":"rgba(18, 18, 20, 1)","--button-stroke":"rgba(18, 18, 20, 0.30)","--button-inner-stroke":"unset","--button-shadow":"0px 0px 8px 0px rgba(0, 0, 0, 0.25)","--button-backdrop-filter":"unset","--button-icon-idle":"rgba(158, 157, 168, 1)","--button-icon-hover":"rgba(215, 214, 229, 1)","--icon-compass-north-color":"#F05C44","--icon-compass-south-color":"#C2C2CC"},Ve={"--button-background":"rgba(255, 255, 255, 0.6)","--button-stroke":"rgba(255, 255, 255, 0.3)","--button-inner-stroke":"1px solid rgba(255, 255, 255, 0.6)","--button-shadow":"0px 0px 8px 0px rgba(0, 0, 0, 0.25), 0px 0px 8px 0px rgba(0, 0, 0, 0.1) inset","--button-backdrop-filter":"blur(4px)","--button-icon-idle":"rgba(97, 97, 102, 1)","--button-icon-hover":"rgba(24, 24, 26, 1)","--icon-compass-north-color":"#F05C44","--icon-compass-south-color":"#C2C2CC"},je={"--button-background":"rgba(18, 18, 20, 0.75)","--button-stroke":"rgba(18, 18, 20, 0.30)","--button-inner-stroke":"1px solid rgba(18, 18, 20, 0.75)","--button-shadow":"0px 0px 8px 0px rgba(0, 0, 0, 0.25), 0px 0px 8px 0px rgba(0, 0, 0, 0.1) inset","--button-backdrop-filter":"blur(4px)","--button-icon-idle":"rgba(158, 157, 168, 1)","--button-icon-hover":"rgba(215, 214, 229, 1)","--icon-compass-north-color":"#F05C44","--icon-compass-south-color":"#C2C2CC"};return Fe(z);})();
8
8
  return __exports__;
9
9
  });
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "UI widgets for deck.gl",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
- "version": "9.0.0-beta.10",
6
+ "version": "9.0.0-beta.11",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -44,5 +44,5 @@
44
44
  "peerDependencies": {
45
45
  "@deck.gl/core": "^9.0.0-beta"
46
46
  },
47
- "gitHead": "6c44f602069374cd21268ff279c5bf818c905ff7"
47
+ "gitHead": "d8a3f5bdb644f85caba9d5c1e74baff8f8a3d439"
48
48
  }
@@ -34,7 +34,7 @@ export class CompassWidget implements Widget<CompassWidgetProps> {
34
34
  placement: WidgetPlacement = 'top-left';
35
35
  viewId?: string | null = null;
36
36
  viewport?: Viewport;
37
- deck?: Deck;
37
+ deck?: Deck<any>;
38
38
  element?: HTMLDivElement;
39
39
 
40
40
  constructor(props: CompassWidgetProps) {
@@ -56,7 +56,7 @@ export class CompassWidget implements Widget<CompassWidgetProps> {
56
56
  this.update();
57
57
  }
58
58
 
59
- onAdd({deck}: {deck: Deck}): HTMLDivElement {
59
+ onAdd({deck}: {deck: Deck<any>}): HTMLDivElement {
60
60
  const {style, className} = this.props;
61
61
  const element = document.createElement('div');
62
62
  element.classList.add('deck-widget', 'deck-widget-compass');
@@ -36,7 +36,7 @@ export class FullscreenWidget implements Widget<FullscreenWidgetProps> {
36
36
  props: FullscreenWidgetProps;
37
37
  placement: WidgetPlacement = 'top-left';
38
38
 
39
- deck?: Deck;
39
+ deck?: Deck<any>;
40
40
  element?: HTMLDivElement;
41
41
 
42
42
  fullscreen: boolean = false;
@@ -50,7 +50,7 @@ export class FullscreenWidget implements Widget<FullscreenWidgetProps> {
50
50
  this.props = props;
51
51
  }
52
52
 
53
- onAdd({deck}: {deck: Deck}): HTMLDivElement {
53
+ onAdd({deck}: {deck: Deck<any>}): HTMLDivElement {
54
54
  const {style, className} = this.props;
55
55
  const el = document.createElement('div');
56
56
  el.classList.add('deck-widget', 'deck-widget-fullscreen');
@@ -44,7 +44,7 @@ export class ZoomWidget implements Widget<ZoomWidgetProps> {
44
44
  orientation: 'vertical' | 'horizontal' = 'vertical';
45
45
  viewId?: string | null = null;
46
46
  viewport?: Viewport;
47
- deck?: Deck;
47
+ deck?: Deck<any>;
48
48
  element?: HTMLDivElement;
49
49
 
50
50
  constructor(props: ZoomWidgetProps) {
@@ -59,7 +59,7 @@ export class ZoomWidget implements Widget<ZoomWidgetProps> {
59
59
  this.props = props;
60
60
  }
61
61
 
62
- onAdd({deck}: {deck: Deck}): HTMLDivElement {
62
+ onAdd({deck}: {deck: Deck<any>}): HTMLDivElement {
63
63
  const {style, className} = this.props;
64
64
  const element = document.createElement('div');
65
65
  element.classList.add('deck-widget', 'deck-widget-zoom');