@russss/maplibregl-layer-switcher 1.2.4 → 2.0.1

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.
@@ -0,0 +1,22 @@
1
+ name: Publish Package to npmjs
2
+ on:
3
+ release:
4
+ types: [published]
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+ permissions:
9
+ contents: read
10
+ id-token: write
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ - uses: actions/setup-node@v4
14
+ with:
15
+ node-version: '20.x'
16
+ registry-url: 'https://registry.npmjs.org'
17
+ - run: npm ci
18
+ - run: npm run test
19
+ - run: npm run build
20
+ - run: npm publish --provenance --access public
21
+ env:
22
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/.prettierrc CHANGED
@@ -1,4 +1,6 @@
1
1
  {
2
+ "semi": false,
3
+ "trailingComma": "none",
2
4
  "singleQuote": true,
3
- "printWidth": 120
5
+ "printWidth": 110
4
6
  }
package/README.md CHANGED
@@ -11,23 +11,28 @@ This package was formerly called `mapboxgl-layer-switcher` but after renaming it
11
11
  ## Use
12
12
 
13
13
  These steps assume you're using Webpack with css-loader. First, import the layer switcher component:
14
+
14
15
  ```javascript
15
- import LayerSwitcher from '@russss/maplibregl-layer-switcher';
16
+ import { LayerSwitcher } from '@russss/maplibregl-layer-switcher'
16
17
  ```
17
18
 
18
19
  Assuming you are using a build system which supports CSS imports, the CSS should be imported automatically.
19
20
 
20
- Now define your layers as an object mapping the layer name to the prefix of the Mapbox GL layers you
21
- want to switch. We also define a list of layers which will be initially enabled:
21
+ Now define your layers. Each layer has a short identifier which will be used in the URL hash,
22
+ a prefix for the style layers to match, and a boolean for whether it's enabled by default:
23
+
22
24
  ```javascript
23
- const layers = {
24
- Power: 'power_',
25
- 'Solar Generation': 'heatmap_',
26
- Labels: 'place_',
27
- };
28
-
29
- const layers_enabled = ['Power', 'Labels'];
30
- const layer_switcher = new LayerSwitcher(layers, layers_enabled);
25
+ const layers_enabled = ['Power', 'Labels']
26
+ const layer_switcher = new LayerSwitcher([
27
+ new LayerGroup('Artificial', [
28
+ new Layer('b', 'Borders', 'boundary'),
29
+ new Layer('l', 'Landuse', 'landuse_', true),
30
+ new Layer('r', 'Roads', 'road_', true),
31
+ new Layer('B', 'Buildings', 'building', true)
32
+ ]),
33
+ new LayerGroup('Natural', [new Layer('w', 'Water', 'water', true)]),
34
+ new Layer('L', 'Labels', 'label', true)
35
+ ])
31
36
  ```
32
37
 
33
38
  Adding the layer switcher to the map after it's been initialised will result in the hidden layers being briefly
@@ -35,15 +40,14 @@ shown. To avoid this, we need to load the style into JS first (I usually bundle
35
40
  call the `setInitialVisibility` method on the loaded style object.
36
41
 
37
42
  ```javascript
38
- const style = //...load map style JSON into an object
39
- layer_switcher.setInitialVisibility(style);
43
+ const style = layer_switcher.setInitialVisibility(style) //...load map style JSON into an object
40
44
  ```
41
45
 
42
46
  Now we can instantiate our map and add the layer switcher to it:
43
- ```javascript
44
47
 
45
- const map = new maplibregl.Map({style: style, container: 'map'});
46
- map.addControl(layer_switcher, 'top-right');
48
+ ```javascript
49
+ const map = new maplibregl.Map({ style: style, container: 'map' })
50
+ map.addControl(layer_switcher)
47
51
  ```
48
52
 
49
53
  ## URL Hash
@@ -51,23 +55,31 @@ map.addControl(layer_switcher, 'top-right');
51
55
  To include layers in the URL hash, first import and create the `URLHash` object, passing in your `LayerSwitcher`:
52
56
 
53
57
  ```javascript
54
- import URLHash from '@russss/maplibregl-layer-switcher/urlhash';
58
+ import { URLHash } from '@russss/maplibregl-layer-switcher'
55
59
  // ...
56
- const url_hash = new URLHash(layer_switcher);
60
+ const url_hash = new URLHash(layer_switcher)
57
61
  ```
58
62
 
59
63
  When creating the map, you need to call `url_hash.init`, passing in your default map options. The URLHash class will
60
64
  update the `zoom` and `center` options if they're provided in the URL hash. Then call `url_hash.enable` on the map:
65
+
61
66
  ```javascript
62
- var map = new maplibregl.Map(url_hash.init({
63
- container: 'map',
64
- style: style,
65
- minZoom: 2,
66
- maxZoom: 17.9,
67
- center: [12, 26],
68
- }));
69
-
70
- url_hash.enable(map);
67
+ var map = new maplibregl.Map(
68
+ url_hash.init({
69
+ container: 'map',
70
+ style: style,
71
+ minZoom: 2,
72
+ maxZoom: 17.9,
73
+ center: [12, 26]
74
+ })
75
+ )
76
+
77
+ url_hash.enable(map)
71
78
  ```
72
79
 
73
80
  The URLHash object doesn't currently support tilt and rotation parameters.
81
+
82
+ ## Development
83
+
84
+ Vite can be used to test the library (using index.html and index.ts in the root directory) but isn't
85
+ used to build the published version.
package/lib/data.d.ts ADDED
@@ -0,0 +1,35 @@
1
+ /**
2
+ * A layer in the layer switcher.
3
+ */
4
+ export declare class Layer {
5
+ id: string;
6
+ prefix: string;
7
+ title: string;
8
+ enabled: boolean;
9
+ /**
10
+ * An item in the layer switcher.
11
+ *
12
+ * @param id alphanumeric identifier for the layer. This is included in the URL hash so should be as short
13
+ * as possible. Must be unique among all layers, or an error will be thrown.
14
+ * @param title name of the layer as shown in the layer switcher.
15
+ * @param prefix prefix of the layer in the map style to match.
16
+ * @param enabled whether the layer is enabled by default.
17
+ */
18
+ constructor(id: string, title: string, prefix: string, enabled?: boolean);
19
+ }
20
+ /**
21
+ * A group of layers shown in the layer switcher.
22
+ */
23
+ export declare class LayerGroup {
24
+ layers: Layer[];
25
+ title: string;
26
+ id: string;
27
+ /**
28
+ * A group of layers shown in the layer switcher.
29
+ *
30
+ * @param title name of the group to be shown.
31
+ * @param layers list of layers in the group.
32
+ */
33
+ constructor(title: string, layers: Layer[]);
34
+ }
35
+ //# sourceMappingURL=data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../src/data.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,KAAK;IAChB,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,OAAO,CAAQ;IAExB;;;;;;;;OAQG;gBACS,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,UAAQ;CAMvE;AAED;;GAEG;AACH,qBAAa,UAAU;IACrB,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,EAAE,EAAE,MAAM,CAAA;IAEV;;;;;OAKG;gBACS,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE;CAK3C"}
package/lib/data.js ADDED
@@ -0,0 +1,37 @@
1
+ /**
2
+ * A layer in the layer switcher.
3
+ */
4
+ export class Layer {
5
+ /**
6
+ * An item in the layer switcher.
7
+ *
8
+ * @param id alphanumeric identifier for the layer. This is included in the URL hash so should be as short
9
+ * as possible. Must be unique among all layers, or an error will be thrown.
10
+ * @param title name of the layer as shown in the layer switcher.
11
+ * @param prefix prefix of the layer in the map style to match.
12
+ * @param enabled whether the layer is enabled by default.
13
+ */
14
+ constructor(id, title, prefix, enabled = false) {
15
+ this.enabled = false;
16
+ this.id = id;
17
+ this.prefix = prefix;
18
+ this.title = title;
19
+ this.enabled = enabled;
20
+ }
21
+ }
22
+ /**
23
+ * A group of layers shown in the layer switcher.
24
+ */
25
+ export class LayerGroup {
26
+ /**
27
+ * A group of layers shown in the layer switcher.
28
+ *
29
+ * @param title name of the group to be shown.
30
+ * @param layers list of layers in the group.
31
+ */
32
+ constructor(title, layers) {
33
+ this.title = title;
34
+ this.id = title;
35
+ this.layers = layers;
36
+ }
37
+ }
package/lib/index.d.ts CHANGED
@@ -1,31 +1,5 @@
1
- import { List } from 'redom';
2
- import './layerswitcher.css';
1
+ import LayerSwitcher from './layerswitcher';
3
2
  import URLHash from './urlhash';
4
- declare class LayerSwitcher implements maplibregl.IControl {
5
- _layers: Record<string, string>;
6
- _identifiers: Record<string, string>;
7
- _default_visible: Array<string>;
8
- _container: HTMLElement;
9
- _visible: Array<string>;
10
- _layerList: List;
11
- _map: maplibregl.Map | undefined;
12
- urlhash: URLHash | undefined;
13
- constructor(layers: Record<string, string>, default_visible?: Array<string>);
14
- _initLayerIdentifiers(): Record<string, string>;
15
- _getLayerIdentifiers(): string[];
16
- _updateVisibility(): void;
17
- /**
18
- * Modify a MapLibre GL style object before creating the map to set initial visibility states.
19
- * This prevents flash-of-invisible-layers.
20
- *
21
- * @param style the MapLibre GL style object to modify
22
- */
23
- setInitialVisibility(style: maplibregl.StyleSpecification): void;
24
- getURLString(): string;
25
- setURLString(string: string): void;
26
- onAdd(map: maplibregl.Map): HTMLDivElement;
27
- onRemove(): void;
28
- _updateList(): void;
29
- }
30
- export default LayerSwitcher;
3
+ import { Layer, LayerGroup } from './data';
4
+ export { LayerSwitcher, URLHash, Layer, LayerGroup };
31
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,IAAI,EAAgC,MAAM,OAAO,CAAC;AAGjE,OAAO,qBAAqB,CAAC;AAC7B,OAAO,OAAO,MAAM,WAAW,CAAC;AAGhC,cAAM,aAAc,YAAW,UAAU,CAAC,QAAQ;IAChD,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC,UAAU,EAAE,WAAW,CAAC;IACxB,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACxB,UAAU,EAAE,IAAI,CAAC;IACjB,IAAI,EAAE,UAAU,CAAC,GAAG,GAAG,SAAS,CAAC;IACjC,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;gBAEjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,eAAe,GAAE,KAAK,CAAC,MAAM,CAAM;IAW/E,qBAAqB;IAgBrB,oBAAoB;IASpB,iBAAiB;IAwBjB;;;;;OAKG;IACH,oBAAoB,CAAC,KAAK,EAAE,UAAU,CAAC,kBAAkB;IAezD,YAAY;IAOZ,YAAY,CAAC,MAAM,EAAE,MAAM;IAqB3B,KAAK,CAAC,GAAG,EAAE,UAAU,CAAC,GAAG;IA6BzB,QAAQ;IAKR,WAAW;CAWZ;AA2CD,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAA;AAC3C,OAAO,OAAO,MAAM,WAAW,CAAA;AAC/B,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAE1C,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,CAAA"}
package/lib/index.js CHANGED
@@ -1,181 +1,4 @@
1
- import { list, el, mount } from 'redom';
2
- import invert from 'lodash.invert';
3
- import isEqual from 'lodash.isequal';
4
- import './layerswitcher.css';
5
- class LayerSwitcher {
6
- constructor(layers, default_visible = []) {
7
- this._layers = layers;
8
- this._identifiers = this._initLayerIdentifiers();
9
- this._default_visible = default_visible;
10
- this._layerList = list('ul', LayerSwitcherItem, 'name');
11
- this._container = el('div', [el('h3', 'Layers'), this._layerList], { class: 'layer-switcher-list' });
12
- mount(document.body, this._container);
13
- this._visible = [...default_visible];
14
- }
15
- _initLayerIdentifiers() {
16
- let identifiers = {};
17
- Object.keys(this._layers)
18
- .sort()
19
- .forEach((layer_name) => {
20
- let size = 1;
21
- let ident = null;
22
- do {
23
- ident = layer_name.slice(0, size);
24
- size++;
25
- } while (ident in identifiers);
26
- identifiers[ident] = layer_name;
27
- });
28
- return identifiers;
29
- }
30
- _getLayerIdentifiers() {
31
- let identifiers = [];
32
- let id_map = invert(this._identifiers);
33
- this._visible.sort().forEach((layer_name) => {
34
- identifiers.push(id_map[layer_name]);
35
- });
36
- return identifiers;
37
- }
38
- _updateVisibility() {
39
- if (!this._map) {
40
- return;
41
- }
42
- var layers = this._map.getStyle().layers;
43
- for (let layer of layers) {
44
- let name = layer['id'];
45
- for (let layer_name in this._layers) {
46
- let pref = this._layers[layer_name];
47
- if (name.startsWith(pref)) {
48
- if (this._visible.includes(layer_name)) {
49
- this._map.setLayoutProperty(name, 'visibility', 'visible');
50
- }
51
- else {
52
- this._map.setLayoutProperty(name, 'visibility', 'none');
53
- }
54
- }
55
- }
56
- }
57
- if (this.urlhash) {
58
- this.urlhash._updateHash();
59
- }
60
- }
61
- /**
62
- * Modify a MapLibre GL style object before creating the map to set initial visibility states.
63
- * This prevents flash-of-invisible-layers.
64
- *
65
- * @param style the MapLibre GL style object to modify
66
- */
67
- setInitialVisibility(style) {
68
- for (let layer of style['layers']) {
69
- for (let layer_name in this._layers) {
70
- let pref = this._layers[layer_name];
71
- if (layer['id'].startsWith(pref) && !this._visible.includes(layer['id'])) {
72
- if (!layer['layout']) {
73
- layer['layout'] = {};
74
- }
75
- layer['layout']['visibility'] = 'none';
76
- }
77
- }
78
- }
79
- this._updateList();
80
- }
81
- getURLString() {
82
- if (!isEqual(this._visible.sort(), this._default_visible.sort())) {
83
- return this._getLayerIdentifiers().join(',');
84
- }
85
- return '';
86
- }
87
- setURLString(string) {
88
- var _a;
89
- if (string) {
90
- const ids = string.split(',');
91
- if (ids.length == 0) {
92
- this._visible = [...this._default_visible];
93
- }
94
- else {
95
- this._visible = ids.map((id) => this._identifiers[id]).filter((id) => id);
96
- }
97
- }
98
- else {
99
- this._visible = [...this._default_visible];
100
- }
101
- // If the style hasn't been loaded yet, don't update visibility or this causes
102
- // problems with the URLHash. Initial visibility is handled by the
103
- // `setInitialVisibility` method.
104
- if ((_a = this._map) === null || _a === void 0 ? void 0 : _a.isStyleLoaded()) {
105
- this._updateVisibility();
106
- }
107
- this._updateList();
108
- }
109
- onAdd(map) {
110
- this._map = map;
111
- if (map.isStyleLoaded()) {
112
- this._updateVisibility();
113
- }
114
- else {
115
- map.on('load', () => {
116
- this._updateVisibility();
117
- });
118
- }
119
- const button = el('button', {
120
- class: 'layer-switcher-button',
121
- 'aria-label': 'Layer Switcher',
122
- });
123
- button.onmouseover = (e) => {
124
- var button_position = button.getBoundingClientRect();
125
- this._container.style.top = button_position.top + 'px';
126
- this._container.style.right = document.documentElement.clientWidth - button_position.right + 'px';
127
- this._container.style.display = 'block';
128
- };
129
- this._container.onmouseleave = (e) => {
130
- this._container.style.display = 'none';
131
- };
132
- return el('div', button, {
133
- class: 'maplibregl-ctrl maplibregl-ctrl-group layer-switcher',
134
- });
135
- }
136
- onRemove() {
137
- var _a;
138
- (_a = this._container.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild(this._container);
139
- this._map = undefined;
140
- }
141
- _updateList() {
142
- this._layerList.update(Object.keys(this._layers).map((name) => {
143
- return {
144
- enabled: this._visible.includes(name),
145
- name: name,
146
- };
147
- }), this);
148
- }
149
- }
150
- class LayerSwitcherItem {
151
- constructor() {
152
- this._checkbox = el('input', {
153
- type: 'checkbox',
154
- });
155
- this._label = el('label');
156
- this.el = el('li', this._label);
157
- this._checkbox.onchange = (e) => this.onChange(e);
158
- }
159
- onChange(e) {
160
- if (!this.layerSwitcher)
161
- return;
162
- const name = this._label.innerText;
163
- if (e.target.checked) {
164
- this.layerSwitcher._visible.push(name);
165
- }
166
- else {
167
- this.layerSwitcher._visible = this.layerSwitcher._visible.filter((item) => item !== name);
168
- }
169
- this.layerSwitcher._updateVisibility();
170
- }
171
- update(data, index, items, context) {
172
- this.layerSwitcher = context;
173
- let label_for = 'layerSwitch' + index;
174
- this._checkbox.id = label_for;
175
- this._label.setAttribute('for', label_for);
176
- this._checkbox.checked = data.enabled;
177
- this._label.innerText = data.name;
178
- mount(this._label, this._checkbox);
179
- }
180
- }
181
- export default LayerSwitcher;
1
+ import LayerSwitcher from './layerswitcher';
2
+ import URLHash from './urlhash';
3
+ import { Layer, LayerGroup } from './data';
4
+ export { LayerSwitcher, URLHash, Layer, LayerGroup };
@@ -10,15 +10,23 @@
10
10
  }
11
11
 
12
12
  .layer-switcher-list {
13
+ display: none;
14
+ user-select: none;
13
15
  background: white;
14
16
  padding-left: 8px;
15
17
  padding-right: 8px;
16
18
  position: absolute;
17
- display: none;
18
19
  margin: 0 !important;
19
20
  font-size: 15px;
20
21
  z-index: 1000;
21
22
  border-radius: 4px;
23
+ box-sizing: content-box;
24
+ min-width: 100px;
25
+ box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
26
+ }
27
+
28
+ .layer-switcher-list.visible {
29
+ display: block;
22
30
  }
23
31
 
24
32
  @media screen and (max-width: 900px) {
@@ -36,17 +44,34 @@
36
44
  margin-top: 6px;
37
45
  }
38
46
 
47
+ .layer-switcher-list h4 {
48
+ margin: 0;
49
+ padding: 0;
50
+ display: inline-block;
51
+ width: 100%;
52
+ border-bottom: 1px solid #ccc;
53
+ margin-bottom: 0.5rem;
54
+ }
55
+
39
56
  .layer-switcher-list ul {
40
- list-style: none;
57
+ display: flex;
58
+ flex-direction: column;
59
+ list-style-type: none;
41
60
  padding: 0;
42
- user-select: none;
43
61
  margin-bottom: 4px;
44
62
  }
45
63
 
46
64
  .layer-switcher-list li {
47
- display: block;
48
65
  width: 100%;
49
- height: 1.5em;
66
+ }
67
+
68
+ .layer-switcher-group + li {
69
+ padding-top: 10px;
70
+ }
71
+
72
+ .layer-switcher-list li.layer-switcher-group {
73
+ display: flex;
74
+ flex-direction: column;
50
75
  }
51
76
 
52
77
  .layer-switcher-list input {
@@ -57,6 +82,9 @@
57
82
  }
58
83
 
59
84
  .layer-switcher-list label {
60
- display: block;
61
- width: 100%;
62
- }
85
+ display: flex;
86
+ align-items: center;
87
+ justify-content: space-between;
88
+ width: 100%;
89
+ cursor: pointer;
90
+ }
@@ -0,0 +1,42 @@
1
+ import './layerswitcher.css';
2
+ import URLHash from './urlhash';
3
+ import { Layer, LayerGroup } from './data';
4
+ import type maplibregl from 'maplibre-gl';
5
+ /**
6
+ * A layer switcher control for MapLibre GL JS.
7
+ */
8
+ declare class LayerSwitcher implements maplibregl.IControl {
9
+ _layers: (Layer | LayerGroup)[];
10
+ _layerIndex: Record<string, Layer>;
11
+ _container: HTMLElement;
12
+ _visible: string[];
13
+ _default_visible: string[];
14
+ _layerList: HTMLElement;
15
+ _map: maplibregl.Map | undefined;
16
+ urlhash: URLHash | undefined;
17
+ /**
18
+ * A layer switcher control for MapLibre GL JS.
19
+ *
20
+ * @param layers a list of `Layer` or `LayerGroup` objects.
21
+ * @param title the title of the layer switcher (default "Layers").
22
+ */
23
+ constructor(layers: (Layer | LayerGroup)[], title?: string);
24
+ getLayers(): Layer[];
25
+ setVisibility(layerId: string, visible: boolean): void;
26
+ _updateVisibility(): void;
27
+ /**
28
+ * Modify a MapLibre GL style object before creating the map to set initial visibility states.
29
+ * This prevents flash-of-invisible-layers.
30
+ *
31
+ * @param style the MapLibre GL style object to modify
32
+ */
33
+ setInitialVisibility(style: maplibregl.StyleSpecification): void;
34
+ getURLString(): string;
35
+ setURLString(string: string): void;
36
+ onAdd(map: maplibregl.Map): HTMLDivElement;
37
+ onRemove(): void;
38
+ _getLayerElement(item: Layer | LayerGroup): Node;
39
+ _updateList(): void;
40
+ }
41
+ export default LayerSwitcher;
42
+ //# sourceMappingURL=layerswitcher.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layerswitcher.d.ts","sourceRoot":"","sources":["../src/layerswitcher.ts"],"names":[],"mappings":"AAEA,OAAO,qBAAqB,CAAA;AAC5B,OAAO,OAAO,MAAM,WAAW,CAAA;AAC/B,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAC1C,OAAO,KAAK,UAAU,MAAM,aAAa,CAAA;AAEzC;;GAEG;AACH,cAAM,aAAc,YAAW,UAAU,CAAC,QAAQ;IAChD,OAAO,EAAE,CAAC,KAAK,GAAG,UAAU,CAAC,EAAE,CAAA;IAC/B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;IAClC,UAAU,EAAE,WAAW,CAAA;IACvB,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,gBAAgB,EAAE,MAAM,EAAE,CAAA;IAC1B,UAAU,EAAE,WAAW,CAAA;IACvB,IAAI,EAAE,UAAU,CAAC,GAAG,GAAG,SAAS,CAAA;IAChC,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAE5B;;;;;OAKG;gBACS,MAAM,EAAE,CAAC,KAAK,GAAG,UAAU,CAAC,EAAE,EAAE,KAAK,GAAE,MAAiB;IAmBpE,SAAS,IAAI,KAAK,EAAE;IAYpB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO;IAY/C,iBAAiB;IAwBjB;;;;;OAKG;IACH,oBAAoB,CAAC,KAAK,EAAE,UAAU,CAAC,kBAAkB;IAezD,YAAY;IAOZ,YAAY,CAAC,MAAM,EAAE,MAAM;IAqB3B,KAAK,CAAC,GAAG,EAAE,UAAU,CAAC,GAAG;IA6BzB,QAAQ;IAKR,gBAAgB,CAAC,IAAI,EAAE,KAAK,GAAG,UAAU,GAAG,IAAI;IAwBhD,WAAW;CAGZ;AAED,eAAe,aAAa,CAAA"}
@@ -0,0 +1,183 @@
1
+ import { el, mount } from 'redom';
2
+ import isEqual from 'lodash.isequal';
3
+ import './layerswitcher.css';
4
+ import { Layer, LayerGroup } from './data';
5
+ /**
6
+ * A layer switcher control for MapLibre GL JS.
7
+ */
8
+ class LayerSwitcher {
9
+ /**
10
+ * A layer switcher control for MapLibre GL JS.
11
+ *
12
+ * @param layers a list of `Layer` or `LayerGroup` objects.
13
+ * @param title the title of the layer switcher (default "Layers").
14
+ */
15
+ constructor(layers, title = 'Layers') {
16
+ this._layers = layers;
17
+ this._layerIndex = {};
18
+ for (let layer of this.getLayers()) {
19
+ if (this._layerIndex[layer.id]) {
20
+ throw new Error(`Duplicate layer ID "${layer.id}". Layer IDs must be unique.`);
21
+ }
22
+ this._layerIndex[layer.id] = layer;
23
+ }
24
+ this._visible = this._default_visible = Object.values(this._layerIndex)
25
+ .filter((layer) => layer.enabled)
26
+ .map((layer) => layer.id);
27
+ this._layerList = el('ul');
28
+ this._container = el('div', [el('h3', title), this._layerList], { class: 'layer-switcher-list' });
29
+ mount(document.body, this._container);
30
+ }
31
+ getLayers() {
32
+ const layers = [];
33
+ for (let layer of this._layers) {
34
+ if (layer instanceof LayerGroup) {
35
+ layers.push(...layer.layers);
36
+ }
37
+ else if (layer instanceof Layer) {
38
+ layers.push(layer);
39
+ }
40
+ }
41
+ return layers;
42
+ }
43
+ setVisibility(layerId, visible) {
44
+ if (visible) {
45
+ if (!this._visible.includes(layerId)) {
46
+ this._visible.push(layerId);
47
+ }
48
+ }
49
+ else {
50
+ this._visible = this._visible.filter((item) => item !== layerId);
51
+ }
52
+ this._updateVisibility();
53
+ }
54
+ _updateVisibility() {
55
+ if (!this._map) {
56
+ return;
57
+ }
58
+ var layers = this._map.getStyle().layers;
59
+ for (let layer of layers) {
60
+ let name = layer['id'];
61
+ for (let layer_name in this._layerIndex) {
62
+ let pref = this._layerIndex[layer_name].prefix;
63
+ if (name.startsWith(pref)) {
64
+ if (this._visible.includes(layer_name)) {
65
+ this._map.setLayoutProperty(name, 'visibility', 'visible');
66
+ }
67
+ else {
68
+ this._map.setLayoutProperty(name, 'visibility', 'none');
69
+ }
70
+ }
71
+ }
72
+ }
73
+ if (this.urlhash) {
74
+ this.urlhash._updateHash();
75
+ }
76
+ }
77
+ /**
78
+ * Modify a MapLibre GL style object before creating the map to set initial visibility states.
79
+ * This prevents flash-of-invisible-layers.
80
+ *
81
+ * @param style the MapLibre GL style object to modify
82
+ */
83
+ setInitialVisibility(style) {
84
+ for (let layer of style['layers']) {
85
+ for (let layer_name in this._layerIndex) {
86
+ let pref = this._layerIndex[layer_name].prefix;
87
+ if (layer['id'].startsWith(pref) && !this._visible.includes(layer['id'])) {
88
+ if (!layer['layout']) {
89
+ layer['layout'] = {};
90
+ }
91
+ layer['layout']['visibility'] = 'none';
92
+ }
93
+ }
94
+ }
95
+ this._updateList();
96
+ }
97
+ getURLString() {
98
+ if (!isEqual(this._visible.sort(), this._default_visible.sort())) {
99
+ return this._visible.sort().join(',');
100
+ }
101
+ return '';
102
+ }
103
+ setURLString(string) {
104
+ var _a;
105
+ if (string) {
106
+ const ids = string.split(',');
107
+ if (ids.length == 0) {
108
+ this._visible = [...this._default_visible];
109
+ }
110
+ else {
111
+ this._visible = ids.filter((id) => this._layerIndex[id]).map((id) => id);
112
+ }
113
+ }
114
+ else {
115
+ this._visible = [...this._default_visible];
116
+ }
117
+ // If the style hasn't been loaded yet, don't update visibility or this causes
118
+ // problems with the URLHash. Initial visibility is handled by the
119
+ // `setInitialVisibility` method.
120
+ if ((_a = this._map) === null || _a === void 0 ? void 0 : _a.isStyleLoaded()) {
121
+ this._updateVisibility();
122
+ }
123
+ this._updateList();
124
+ }
125
+ onAdd(map) {
126
+ this._map = map;
127
+ if (map.isStyleLoaded()) {
128
+ this._updateVisibility();
129
+ }
130
+ else {
131
+ map.on('load', () => {
132
+ this._updateVisibility();
133
+ });
134
+ }
135
+ const button = el('button', {
136
+ class: 'layer-switcher-button',
137
+ 'aria-label': 'Layer Switcher'
138
+ });
139
+ button.onmouseover = () => {
140
+ var button_position = button.getBoundingClientRect();
141
+ this._container.style.top = button_position.top + 'px';
142
+ this._container.style.right = document.documentElement.clientWidth - button_position.right + 'px';
143
+ this._container.classList.add('visible');
144
+ };
145
+ this._container.onmouseleave = () => {
146
+ this._container.classList.remove('visible');
147
+ };
148
+ return el('div', button, {
149
+ class: 'maplibregl-ctrl maplibregl-ctrl-group layer-switcher'
150
+ });
151
+ }
152
+ onRemove() {
153
+ var _a;
154
+ (_a = this._container.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild(this._container);
155
+ this._map = undefined;
156
+ }
157
+ _getLayerElement(item) {
158
+ if (item instanceof Layer) {
159
+ const checkbox = el('input', {
160
+ type: 'checkbox',
161
+ checked: this._visible.includes(item.id),
162
+ onchange: (e) => {
163
+ this.setVisibility(item.id, e.target.checked);
164
+ }
165
+ });
166
+ const label = el('label', item.title, checkbox);
167
+ return el('li', label);
168
+ }
169
+ else if (item instanceof LayerGroup) {
170
+ return el('li.layer-switcher-group', [
171
+ el('h4', item.title),
172
+ el('ul', item.layers.map((layer) => this._getLayerElement(layer)))
173
+ ]);
174
+ }
175
+ else {
176
+ throw new Error('Unknown item type: ' + item);
177
+ }
178
+ }
179
+ _updateList() {
180
+ this._layerList.replaceChildren(...this._layers.map((item) => this._getLayerElement(item)));
181
+ }
182
+ }
183
+ export default LayerSwitcher;
@@ -1 +1 @@
1
- {"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/typescript/lib/lib.es2016.full.d.ts","../node_modules/redom/index.d.ts","../node_modules/@types/lodash/common/common.d.ts","../node_modules/@types/lodash/common/array.d.ts","../node_modules/@types/lodash/common/collection.d.ts","../node_modules/@types/lodash/common/date.d.ts","../node_modules/@types/lodash/common/function.d.ts","../node_modules/@types/lodash/common/lang.d.ts","../node_modules/@types/lodash/common/math.d.ts","../node_modules/@types/lodash/common/number.d.ts","../node_modules/@types/lodash/common/object.d.ts","../node_modules/@types/lodash/common/seq.d.ts","../node_modules/@types/lodash/common/string.d.ts","../node_modules/@types/lodash/common/util.d.ts","../node_modules/@types/lodash/index.d.ts","../node_modules/@types/lodash.invert/index.d.ts","../node_modules/@types/lodash.isequal/index.d.ts","../node_modules/@types/mapbox__point-geometry/index.d.ts","../node_modules/@mapbox/tiny-sdf/index.d.ts","../node_modules/@types/pbf/index.d.ts","../node_modules/@types/geojson/index.d.ts","../node_modules/@types/mapbox__vector-tile/index.d.ts","../node_modules/@maplibre/maplibre-gl-style-spec/dist/index.d.ts","../node_modules/gl-matrix/index.d.ts","../node_modules/kdbush/index.d.ts","../node_modules/potpack/index.d.ts","../node_modules/maplibre-gl/dist/maplibre-gl.d.ts","../src/urlhash.ts","../src/index.ts","../src/urlhash.test.ts","../node_modules/@babel/types/lib/index.d.ts","../node_modules/@types/babel__generator/index.d.ts","../node_modules/@babel/parser/typings/babel-parser.d.ts","../node_modules/@types/babel__template/index.d.ts","../node_modules/@types/babel__traverse/index.d.ts","../node_modules/@types/babel__core/index.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/dom-events.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/@types/graceful-fs/index.d.ts","../node_modules/@types/istanbul-lib-coverage/index.d.ts","../node_modules/@types/istanbul-lib-report/index.d.ts","../node_modules/@types/istanbul-reports/index.d.ts","../node_modules/@jest/expect-utils/build/index.d.ts","../node_modules/chalk/index.d.ts","../node_modules/@sinclair/typebox/typebox.d.ts","../node_modules/@jest/schemas/build/index.d.ts","../node_modules/pretty-format/build/index.d.ts","../node_modules/jest-diff/build/index.d.ts","../node_modules/jest-matcher-utils/build/index.d.ts","../node_modules/expect/build/index.d.ts","../node_modules/@types/jest/index.d.ts","../node_modules/parse5/dist/common/html.d.ts","../node_modules/parse5/dist/common/token.d.ts","../node_modules/parse5/dist/common/error-codes.d.ts","../node_modules/parse5/dist/tokenizer/preprocessor.d.ts","../node_modules/parse5/dist/tokenizer/index.d.ts","../node_modules/parse5/dist/tree-adapters/interface.d.ts","../node_modules/parse5/dist/parser/open-element-stack.d.ts","../node_modules/parse5/dist/parser/formatting-element-list.d.ts","../node_modules/parse5/dist/parser/index.d.ts","../node_modules/parse5/dist/tree-adapters/default.d.ts","../node_modules/parse5/dist/serializer/index.d.ts","../node_modules/parse5/dist/common/foreign-content.d.ts","../node_modules/parse5/dist/index.d.ts","../node_modules/@types/tough-cookie/index.d.ts","../node_modules/@types/jsdom/base.d.ts","../node_modules/@types/jsdom/index.d.ts","../node_modules/@types/prettier/index.d.ts","../node_modules/@types/stack-utils/index.d.ts","../node_modules/@types/yargs-parser/index.d.ts","../node_modules/@types/yargs/index.d.ts"],"fileInfos":[{"version":"824cb491a40f7e8fdeb56f1df5edf91b23f3e3ee6b4cde84d4a99be32338faee","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4",{"version":"87d693a4920d794a73384b3c779cadcb8548ac6945aa7a925832fe2418c9527a","affectsGlobalScope":true},{"version":"76f838d5d49b65de83bc345c04aa54c62a3cfdb72a477dc0c0fce89a30596c30","affectsGlobalScope":true},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true},{"version":"138fb588d26538783b78d1e3b2c2cc12d55840b97bf5e08bca7f7a174fbe2f17","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"b20fe0eca9a4e405f1a5ae24a2b3290b37cf7f21eba6cbe4fc3fab979237d4f3","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"49ed889be54031e1044af0ad2c603d627b8bda8b50c1a68435fe85583901d072","affectsGlobalScope":true},{"version":"e93d098658ce4f0c8a0779e6cab91d0259efb88a318137f686ad76f8410ca270","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"5e07ed3809d48205d5b985642a59f2eba47c402374a7cf8006b686f79efadcbd","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"8073890e29d2f46fdbc19b8d6d2eb9ea58db9a2052f8640af20baff9afbc8640","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"13f6e6380c78e15e140243dc4be2fa546c287c6d61f4729bc2dd7cf449605471","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"807e0e0bdc67605dd28efe18f20ab5fcd75d944ef95936120702335f9379094b","332f8e56efa13b367cb696e2036918d80887b13177c12acda6d49ee145c333ca","675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","458111fc89d11d2151277c822dfdc1a28fa5b6b2493cf942e37d4cd0a6ee5f22","19c816167e076e7c24f074389c6cf3ed87bdbb917d1ea439ca281f9d26db2439","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","febf0b2de54781102b00f61653b21377390a048fbf5262718c91860d11ff34a6","98f9d826db9cd99d27a01a59ee5f22863df00ccf1aaf43e1d7db80ebf716f7c3","0aaef8cded245bf5036a7a40b65622dd6c4da71f7a35343112edbe112b348a1e","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","dcd91d3b697cb650b95db5471189b99815af5db2a1cd28760f91e0b12ede8ed5","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3cf0d343c2276842a5b617f22ba82af6322c7cfe8bb52238ffc0c491a3c21019","df996e25faa505f85aeb294d15ebe61b399cf1d1e49959cdfaf2cc0815c203f9",{"version":"f2eff8704452659641164876c1ef0df4174659ce7311b0665798ea3f556fa9ad","affectsGlobalScope":true},"b578be2890bf15a1a9b3b8177ff0975c99bae05f5422241452fe810eec3bff1c","6bb8d7433a29fbd33df8e9693f1788a273a9eb90b96c8f99c745678c7db623f1","e86cd9c6c99834f8591ed72f08e4ca31570296f081206d0168f58f032cec5b58","bc8b2489bf29fa17cf4e7d5a4447daa456d7caf61455f50aafc34f1f3b915727","2a856615ecd0af49997dfbb38cf94fd787d529062a2e96ce26b84432e61d785d","a3b6c93a9838b8c94c6998e85646d6f2d07c20ecfe1e235dba62158b29451391","ab438f22fa7748112b6b9744b992ab6049d2fa6f46f011c145ff9c90e533856a","e92ff9eccdb74e9bf34e9dcbd3525252b021ff7fd763e63c95d80c9e0eeb8406","6b729c3274f6d4738fe470109bcb08b09ef98a6b356c01da3ca8dc0996b4458b","4dbf094f9d643b74e516779a802d9c5debd2929fb875ccfbc608d61afba064e4","828ea2cf5792eba68ebd41d6dd17ac67d31622b7889965210f8fa50a6eb29eba","41d979b791363582ff485524e0db7d2312207a811d5f08e92566733ab90dde9f",{"version":"38fb200a6eedb5e68b673da82cb31d0e8137eb426e2bd5a694f412163a4c76ef","signature":"a881b9df48e5f910818dfab8ea1e2a74bfdbc51ad638f3fb980c8c86ba023583"},{"version":"eed289cbbadefbe0b5df86b3b148453028e6cbbb8c6f56e9c7afc42dfb750981","signature":"598868f3dd681bf8895043048b33e95d3149d53e00440e3d5762af2fdb1f3301"},{"version":"3234998ed4c3fc9a7e8dee958ac41398fb1ec1883c4b0e107a189102e7eddf3f","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},"ac65f04c2df0218cb8e54f012745cbfcc3c0e67c1f6b1e557d88842bbb72e2db","cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb","a2e86df4db576d80704e25293cec6f20fc6101a11f4747440e2eef58fb3c860c","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","6704f0b54df85640baaeebd86c9d4a1dbb661d5a4d57a75bc84162f562f6531d","9d255af1b09c6697089d3c9bf438292a298d8b7a95c68793c9aae80afc9e5ca7","587f13f1e8157bd8cec0adda0de4ef558bb8573daa9d518d1e2af38e87ecc91f","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"bce910d9164785c9f0d4dcea4be359f5f92130c7c7833dea6138ab1db310a1f9","affectsGlobalScope":true},"7a435e0c814f58f23e9a0979045ec0ef5909aac95a70986e8bcce30c27dff228",{"version":"c81c51f43e343b6d89114b17341fb9d381c4ccbb25e0ee77532376052c801ba7","affectsGlobalScope":true},"db71be322f07f769200108aa19b79a75dd19a187c9dca2a30c4537b233aa2863","57135ce61976a8b1dadd01bb412406d1805b90db6e8ecb726d0d78e0b5f76050",{"version":"49479e21a040c0177d1b1bc05a124c0383df7a08a0726ad4d9457619642e875a","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","f302f3a47d7758f67f2afc753b9375d6504dde05d2e6ecdb1df50abbb131fc89","3690133deae19c8127c5505fcb67b04bdc9eb053796008538a9b9abbb70d85aa","5b1c0a23f464f894e7c2b2b6c56df7b9afa60ed48c5345f8618d389a636b2108","be2b092f2765222757c6441b86c53a5ea8dfed47bbc43eab4c5fe37942c866b3","8e6b05abc98adba15e1ac78e137c64576c74002e301d682e66feb77a23907ab8","1ca735bb3d407b2af4fbee7665f3a0a83be52168c728cc209755060ba7ed67bd",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"b85c02e14ecb2a873dad5a1de72319b265160ba48f1b83661aeb3bba1366c1bc","affectsGlobalScope":true},"7a2ba0c9af860ac3e77b35ed01fd96d15986f17aa22fe40f188ae556fb1070df","fc3764040518a1008dd04bdc80964591b566b896283e00df85c95851c1f46237","55709608060f77965c270ac10ac646286589f1bd1cb174fff1778a2dd9a7ef31","790623a47c5eda62910098884ecb154dc0e5f3a23fc36c1bfb3b5b9ed44e2c2d","42b40e40f2a358cda332456214fad311e1806a6abf3cebaaac72496e07556642","354612fe1d49ecc9551ea3a27d94eef2887b64ef4a71f72ca444efe0f2f0ba80",{"version":"ac0c77cd7db52b3c278bdd1452ce754014835493d05b84535f46854fdc2063b2","affectsGlobalScope":true},"b9f36877501f2ce0e276e993c93cd2cf325e78d0409ec4612b1eb9d6a537e60b","5e2b91328a540a0933ab5c2203f4358918e6f0fe7505d22840a891a6117735f1","3abc3512fa04aa0230f59ea1019311fd8667bd935d28306311dccc8b17e79d5d",{"version":"14a50dafe3f45713f7f27cb6320dff07c6ac31678f07959c2134260061bf91ff","affectsGlobalScope":true},{"version":"19da7150ca062323b1db6311a6ef058c9b0a39cc64d836b5e9b75d301869653b","affectsGlobalScope":true},"1349077576abb41f0e9c78ec30762ff75b710208aff77f5fdcc6a8c8ce6289dd","e2ce82603102b5c0563f59fb40314cc1ff95a4d521a66ad14146e130ea80d89c","a3e0395220255a350aa9c6d56f882bfcb5b85c19fddf5419ec822cf22246a26d","c27b01e8ddff5cd280711af5e13aecd9a3228d1c256ea797dd64f8fdec5f7df5","898840e876dfd21843db9f2aa6ae38ba2eab550eb780ff62b894b9fbfebfae6b","0cab4d7d4edc40cd3af9eea7c3ed6d1016910c0954c49c4297e479bf3822a625","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","785e5be57d4f20f290a20e7b0c6263f6c57fd6e51283050756cef07d6d651c68","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","164deb2409ac5f4da3cd139dbcee7f7d66753d90363a4d7e2db8d8874f272270",{"version":"ffc62d73b4fa10ca8c59f8802df88efefe447025730a24ee977b60adedc5bf37","affectsGlobalScope":true},{"version":"ab294c4b7279318ee2a8fdf681305457ecc05970c94108d304933f18823eeac1","affectsGlobalScope":true},"ad08154d9602429522cac965a715fde27d421d69b24756c5d291877dda75353e","5bc85813bfcb6907cc3a960fec8734a29d7884e0e372515147720c5991b8bc22","812b25f798033c202baedf386a1ccc41f9191b122f089bffd10fdccce99fba11","993325544790073f77e945bee046d53988c0bc3ac5695c9cf8098166feb82661",{"version":"75dd741ca6a6c8d2437a6ca8349b64b816421dbf9fe82dd026afaba965576962","affectsGlobalScope":true},{"version":"0e08c360c9b5961ecb0537b703e253842b3ded53151ee07024148219b61a8baf","affectsGlobalScope":true},"2ce2210032ccaff7710e2abf6a722e62c54960458e73e356b6a365c93ab6ca66","92db194ef7d208d5e4b6242a3434573fd142a621ff996d84cc9dbba3553277d0","16a3080e885ed52d4017c902227a8d0d8daf723d062bec9e45627c6fdcd6699b",{"version":"0bd9543cd8fc0959c76fb8f4f5a26626c2ed62ef4be98fd857bce268066db0a2","affectsGlobalScope":true},"1ca6858a0cbcd74d7db72d7b14c5360a928d1d16748a55ecfa6bfaff8b83071b",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"ebf3434b09c527078aa74139ff367fffa64fea32a01d6c06fb0a69b0ecadf43e","bf88ef4208a770ca39a844b182b3695df536326ea566893fdc5b8418702a331e","8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","6c1e688f95fcaf53b1e41c0fdadf2c1cfc96fa924eaf7f9fdb60f96deb0a4986","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","c085e9aa62d1ae1375794c1fb927a445fa105fed891a7e24edbb1c3300f7384a","f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","6d969939c4a63f70f2aa49e88da6f64b655c8e6799612807bef41ccff6ea0da9",{"version":"b2fdcc3836d425833af10e536ae5491c34e218bc71870f12a401720f874b6ce4","affectsGlobalScope":true},"3411c785dbe8fd42f7d644d1e05a7e72b624774a08a9356479754999419c3c5a","8fb8fdda477cd7382477ffda92c2bb7d9f7ef583b1aa531eb6b2dc2f0a206c10","66995b0c991b5c5d42eff1d950733f85482c7419f7296ab8952e03718169e379","33f3795a4617f98b1bb8dac36312119d02f31897ae75436a1e109ce042b48ee8","2850c9c5dc28d34ad5f354117d0419f325fc8932d2a62eadc4dc52c018cd569b","c753948f7e0febe7aa1a5b71a714001a127a68861309b2c4127775aa9b6d4f24","3e7a40e023e1d4a9eef1a6f08a3ded8edacb67ae5fce072014205d730f717ba5","a77be6fc44c876bc10c897107f84eaba10790913ebdcad40fcda7e47469b2160","382100b010774614310d994bbf16cc9cd291c14f0d417126c7a7cfad1dc1d3f8","91f5dbcdb25d145a56cffe957ec665256827892d779ef108eb2f3864faff523b","4fdf56315340bd1770eb52e1601c3a98e45b1d207202831357e99ce29c35b55c","927955a3de5857e0a1c575ced5a4245e74e6821d720ed213141347dd1870197f","be6fd74528b32986fbf0cd2cfa9192a5ed7f369060b32a7adcb0c8d055708e61","cc256fd958b33576ed32c7338c64adb0d08fc0c2c6525010202fab83f32745da","fd0589ca571ad090b531d8c095e26caa53d4825c64d3ff2b2b1ab95d72294175",{"version":"669843ecafb89ae1e944df06360e8966219e4c1c34c0d28aa2503272cdd444a7","affectsGlobalScope":true},"d88a5e779faf033be3d52142a04fbe1cb96009868e3bbdd296b2bc6c59e06c0e","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e","e9eb1b173aa166892f3eddab182e49cfe59aa2e14d33aedb6b49d175ed6a3750"],"root":[[77,79]],"options":{"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":5,"outDir":"./","strict":true,"target":3},"fileIdsList":[[80,132],[132],[132,146],[67,132],[80,81,82,83,84,132],[80,82,132],[103,132,139],[132,141],[132,142],[132,148,151],[102,132,134,139,165,166,168],[132,167],[64,132],[52,54,55,56,57,58,59,60,61,62,63,64,132],[52,53,55,56,57,58,59,60,61,62,63,64,132],[53,54,55,56,57,58,59,60,61,62,63,64,132],[52,53,54,56,57,58,59,60,61,62,63,64,132],[52,53,54,55,57,58,59,60,61,62,63,64,132],[52,53,54,55,56,58,59,60,61,62,63,64,132],[52,53,54,55,56,57,59,60,61,62,63,64,132],[52,53,54,55,56,57,58,60,61,62,63,64,132],[52,53,54,55,56,57,58,59,61,62,63,64,132],[52,53,54,55,56,57,58,59,60,62,63,64,132],[52,53,54,55,56,57,58,59,60,61,63,64,132],[52,53,54,55,56,57,58,59,60,61,62,64,132],[52,53,54,55,56,57,58,59,60,61,62,63,132],[67,69,70,132],[86,132],[89,132],[90,95,123,132],[91,102,103,110,120,131,132],[91,92,102,110,132],[93,132],[94,95,103,111,132],[95,120,128,132],[96,98,102,110,132],[97,132],[98,99,132],[102,132],[100,102,132],[102,103,104,120,131,132],[102,103,104,117,120,123,132],[132,136],[98,102,105,110,120,131,132],[102,103,105,106,110,120,128,131,132],[105,107,120,128,131,132],[86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138],[102,108,132],[109,131,132],[98,102,110,120,132],[111,132],[112,132],[89,113,132],[114,130,132,136],[115,132],[116,132],[102,117,118,132],[117,119,132,134],[90,102,120,121,122,123,132],[90,120,122,132],[120,121,132],[123,132],[124,132],[120,132],[102,126,127,132],[126,127,132],[95,110,120,128,132],[129,132],[110,130,132],[90,105,116,131,132],[95,132],[120,132,133],[132,134],[132,135],[90,95,102,104,113,120,131,132,134,136],[120,132,137],[132,171],[89,132,139,144,150],[132,148],[132,145,149],[67,68,71,72,73,74,75,132],[132,154],[132,153,154],[132,153],[132,153,154,155,157,158,161,162,163,164],[132,154,158],[132,153,154,155,157,158,159,160],[132,153,158],[132,158,162],[132,154,155,156],[132,155],[132,153,154,158],[132,147],[51,65,66,76,77,132],[77,78,132],[76,78,132],[51,77],[78]],"referencedMap":[[82,1],[80,2],[144,2],[147,3],[68,2],[72,4],[146,2],[85,5],[81,1],[83,6],[84,1],[70,2],[140,7],[141,2],[142,8],[143,9],[152,10],[167,11],[168,12],[65,13],[66,13],[53,14],[54,15],[52,16],[55,17],[56,18],[57,19],[58,20],[59,21],[60,22],[61,23],[62,24],[63,25],[64,26],[67,2],[71,27],[86,28],[87,28],[89,29],[90,30],[91,31],[92,32],[93,33],[94,34],[95,35],[96,36],[97,37],[98,38],[99,38],[101,39],[100,40],[102,39],[103,41],[104,42],[88,43],[138,2],[105,44],[106,45],[107,46],[139,47],[108,48],[109,49],[110,50],[111,51],[112,52],[113,53],[114,54],[115,55],[116,56],[117,57],[118,57],[119,58],[120,59],[122,60],[121,61],[123,62],[124,63],[125,64],[126,65],[127,66],[128,67],[129,68],[130,69],[131,70],[132,71],[133,72],[134,73],[135,74],[136,75],[137,76],[69,2],[169,2],[170,2],[166,2],[171,2],[172,77],[145,2],[151,78],[73,2],[149,79],[150,80],[74,2],[76,81],[155,82],[164,83],[153,2],[154,84],[165,85],[160,86],[161,87],[159,88],[163,89],[157,90],[156,91],[162,92],[158,83],[75,2],[148,93],[51,2],[48,2],[49,2],[8,2],[9,2],[13,2],[12,2],[2,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[3,2],[50,2],[22,2],[4,2],[23,2],[27,2],[24,2],[25,2],[26,2],[28,2],[29,2],[30,2],[5,2],[31,2],[32,2],[33,2],[34,2],[6,2],[38,2],[35,2],[36,2],[37,2],[39,2],[7,2],[40,2],[45,2],[46,2],[41,2],[42,2],[43,2],[44,2],[1,2],[47,2],[11,2],[10,2],[78,94],[79,95],[77,96]],"exportedModulesMap":[[82,1],[80,2],[144,2],[147,3],[68,2],[72,4],[146,2],[85,5],[81,1],[83,6],[84,1],[70,2],[140,7],[141,2],[142,8],[143,9],[152,10],[167,11],[168,12],[65,13],[66,13],[53,14],[54,15],[52,16],[55,17],[56,18],[57,19],[58,20],[59,21],[60,22],[61,23],[62,24],[63,25],[64,26],[67,2],[71,27],[86,28],[87,28],[89,29],[90,30],[91,31],[92,32],[93,33],[94,34],[95,35],[96,36],[97,37],[98,38],[99,38],[101,39],[100,40],[102,39],[103,41],[104,42],[88,43],[138,2],[105,44],[106,45],[107,46],[139,47],[108,48],[109,49],[110,50],[111,51],[112,52],[113,53],[114,54],[115,55],[116,56],[117,57],[118,57],[119,58],[120,59],[122,60],[121,61],[123,62],[124,63],[125,64],[126,65],[127,66],[128,67],[129,68],[130,69],[131,70],[132,71],[133,72],[134,73],[135,74],[136,75],[137,76],[69,2],[169,2],[170,2],[166,2],[171,2],[172,77],[145,2],[151,78],[73,2],[149,79],[150,80],[74,2],[76,81],[155,82],[164,83],[153,2],[154,84],[165,85],[160,86],[161,87],[159,88],[163,89],[157,90],[156,91],[162,92],[158,83],[75,2],[148,93],[51,2],[48,2],[49,2],[8,2],[9,2],[13,2],[12,2],[2,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[3,2],[50,2],[22,2],[4,2],[23,2],[27,2],[24,2],[25,2],[26,2],[28,2],[29,2],[30,2],[5,2],[31,2],[32,2],[33,2],[34,2],[6,2],[38,2],[35,2],[36,2],[37,2],[39,2],[7,2],[40,2],[45,2],[46,2],[41,2],[42,2],[43,2],[44,2],[1,2],[47,2],[11,2],[10,2],[78,97],[77,98]],"semanticDiagnosticsPerFile":[82,80,144,147,68,72,146,85,81,83,84,70,140,141,142,143,152,167,168,65,66,53,54,52,55,56,57,58,59,60,61,62,63,64,67,71,86,87,89,90,91,92,93,94,95,96,97,98,99,101,100,102,103,104,88,138,105,106,107,139,108,109,110,111,112,113,114,115,116,117,118,119,120,122,121,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,69,169,170,166,171,172,145,151,73,149,150,74,76,155,164,153,154,165,160,161,159,163,157,156,162,158,75,148,51,48,49,8,9,13,12,2,14,15,16,17,18,19,20,21,3,50,22,4,23,27,24,25,26,28,29,30,5,31,32,33,34,6,38,35,36,37,39,7,40,45,46,41,42,43,44,1,47,11,10,78,79,77]},"version":"5.4.5"}
1
+ {"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/typescript/lib/lib.es2016.full.d.ts","../src/data.ts","../node_modules/redom/index.d.ts","../node_modules/@types/lodash/common/common.d.ts","../node_modules/@types/lodash/common/array.d.ts","../node_modules/@types/lodash/common/collection.d.ts","../node_modules/@types/lodash/common/date.d.ts","../node_modules/@types/lodash/common/function.d.ts","../node_modules/@types/lodash/common/lang.d.ts","../node_modules/@types/lodash/common/math.d.ts","../node_modules/@types/lodash/common/number.d.ts","../node_modules/@types/lodash/common/object.d.ts","../node_modules/@types/lodash/common/seq.d.ts","../node_modules/@types/lodash/common/string.d.ts","../node_modules/@types/lodash/common/util.d.ts","../node_modules/@types/lodash/index.d.ts","../node_modules/@types/lodash.isequal/index.d.ts","../node_modules/@types/mapbox__point-geometry/index.d.ts","../node_modules/@mapbox/tiny-sdf/index.d.ts","../node_modules/@types/pbf/index.d.ts","../node_modules/@types/geojson/index.d.ts","../node_modules/@types/mapbox__vector-tile/index.d.ts","../node_modules/@maplibre/maplibre-gl-style-spec/dist/index.d.ts","../node_modules/@types/geojson-vt/index.d.ts","../node_modules/gl-matrix/index.d.ts","../node_modules/kdbush/index.d.ts","../node_modules/potpack/index.d.ts","../node_modules/@types/supercluster/index.d.ts","../node_modules/maplibre-gl/dist/maplibre-gl.d.ts","../src/urlhash.ts","../src/layerswitcher.ts","../src/index.ts","../src/urlhash.test.ts","../node_modules/@babel/types/lib/index.d.ts","../node_modules/@types/babel__generator/index.d.ts","../node_modules/@babel/parser/typings/babel-parser.d.ts","../node_modules/@types/babel__template/index.d.ts","../node_modules/@types/babel__traverse/index.d.ts","../node_modules/@types/babel__core/index.d.ts","../node_modules/@types/estree/index.d.ts","../node_modules/@types/node/compatibility/disposable.d.ts","../node_modules/@types/node/compatibility/indexable.d.ts","../node_modules/@types/node/compatibility/iterators.d.ts","../node_modules/@types/node/compatibility/index.d.ts","../node_modules/@types/node/globals.typedarray.d.ts","../node_modules/@types/node/buffer.buffer.d.ts","../node_modules/undici-types/header.d.ts","../node_modules/undici-types/readable.d.ts","../node_modules/undici-types/file.d.ts","../node_modules/undici-types/fetch.d.ts","../node_modules/undici-types/formdata.d.ts","../node_modules/undici-types/connector.d.ts","../node_modules/undici-types/client.d.ts","../node_modules/undici-types/errors.d.ts","../node_modules/undici-types/dispatcher.d.ts","../node_modules/undici-types/global-dispatcher.d.ts","../node_modules/undici-types/global-origin.d.ts","../node_modules/undici-types/pool-stats.d.ts","../node_modules/undici-types/pool.d.ts","../node_modules/undici-types/handlers.d.ts","../node_modules/undici-types/balanced-pool.d.ts","../node_modules/undici-types/agent.d.ts","../node_modules/undici-types/mock-interceptor.d.ts","../node_modules/undici-types/mock-agent.d.ts","../node_modules/undici-types/mock-client.d.ts","../node_modules/undici-types/mock-pool.d.ts","../node_modules/undici-types/mock-errors.d.ts","../node_modules/undici-types/proxy-agent.d.ts","../node_modules/undici-types/env-http-proxy-agent.d.ts","../node_modules/undici-types/retry-handler.d.ts","../node_modules/undici-types/retry-agent.d.ts","../node_modules/undici-types/api.d.ts","../node_modules/undici-types/interceptors.d.ts","../node_modules/undici-types/util.d.ts","../node_modules/undici-types/cookies.d.ts","../node_modules/undici-types/patch.d.ts","../node_modules/undici-types/websocket.d.ts","../node_modules/undici-types/eventsource.d.ts","../node_modules/undici-types/filereader.d.ts","../node_modules/undici-types/diagnostics-channel.d.ts","../node_modules/undici-types/content-type.d.ts","../node_modules/undici-types/cache.d.ts","../node_modules/undici-types/index.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/dom-events.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/sea.d.ts","../node_modules/@types/node/sqlite.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/@types/graceful-fs/index.d.ts","../node_modules/@types/istanbul-lib-coverage/index.d.ts","../node_modules/@types/istanbul-lib-report/index.d.ts","../node_modules/@types/istanbul-reports/index.d.ts","../node_modules/@jest/expect-utils/build/index.d.ts","../node_modules/chalk/index.d.ts","../node_modules/@sinclair/typebox/typebox.d.ts","../node_modules/@jest/schemas/build/index.d.ts","../node_modules/pretty-format/build/index.d.ts","../node_modules/jest-diff/build/index.d.ts","../node_modules/jest-matcher-utils/build/index.d.ts","../node_modules/expect/build/index.d.ts","../node_modules/@types/jest/index.d.ts","../node_modules/parse5/dist/common/html.d.ts","../node_modules/parse5/dist/common/token.d.ts","../node_modules/parse5/dist/common/error-codes.d.ts","../node_modules/parse5/dist/tokenizer/preprocessor.d.ts","../node_modules/parse5/dist/tokenizer/index.d.ts","../node_modules/parse5/dist/tree-adapters/interface.d.ts","../node_modules/parse5/dist/parser/open-element-stack.d.ts","../node_modules/parse5/dist/parser/formatting-element-list.d.ts","../node_modules/parse5/dist/parser/index.d.ts","../node_modules/parse5/dist/tree-adapters/default.d.ts","../node_modules/parse5/dist/serializer/index.d.ts","../node_modules/parse5/dist/common/foreign-content.d.ts","../node_modules/parse5/dist/index.d.ts","../node_modules/@types/tough-cookie/index.d.ts","../node_modules/@types/jsdom/base.d.ts","../node_modules/@types/jsdom/index.d.ts","../node_modules/@types/prettier/index.d.ts","../node_modules/@types/stack-utils/index.d.ts","../node_modules/@types/yargs-parser/index.d.ts","../node_modules/@types/yargs/index.d.ts"],"fileIdsList":[[83,95,137],[95,137],[95,137,194],[83,84,85,86,87,95,137],[83,85,95,137],[70,95,137],[95,137,150,187],[95,137,189],[95,137,190],[95,137,196,199],[95,137,149,183,187,213,214,216],[95,137,215],[65,95,137],[53,55,56,57,58,59,60,61,62,63,64,65,95,137],[53,54,56,57,58,59,60,61,62,63,64,65,95,137],[54,55,56,57,58,59,60,61,62,63,64,65,95,137],[53,54,55,57,58,59,60,61,62,63,64,65,95,137],[53,54,55,56,58,59,60,61,62,63,64,65,95,137],[53,54,55,56,57,59,60,61,62,63,64,65,95,137],[53,54,55,56,57,58,60,61,62,63,64,65,95,137],[53,54,55,56,57,58,59,61,62,63,64,65,95,137],[53,54,55,56,57,58,59,60,62,63,64,65,95,137],[53,54,55,56,57,58,59,60,61,63,64,65,95,137],[53,54,55,56,57,58,59,60,61,62,64,65,95,137],[53,54,55,56,57,58,59,60,61,62,63,65,95,137],[53,54,55,56,57,58,59,60,61,62,63,64,95,137],[67,69,70,95,137],[95,134,137],[95,136,137],[137],[95,137,142,172],[95,137,138,143,149,150,157,169,180],[95,137,138,139,149,157],[90,91,92,95,137],[95,137,140,181],[95,137,141,142,150,158],[95,137,142,169,177],[95,137,143,145,149,157],[95,136,137,144],[95,137,145,146],[95,137,149],[95,137,147,149],[95,136,137,149],[95,137,149,150,151,169,180],[95,137,149,150,151,164,169,172],[95,132,137,185],[95,132,137,145,149,152,157,169,180],[95,137,149,150,152,153,157,169,177,180],[95,137,152,154,169,177,180],[93,94,95,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186],[95,137,149,155],[95,137,156,180],[95,137,145,149,157,169],[95,137,158],[95,137,159],[95,136,137,160],[95,134,135,136,137,138,139,140,141,142,143,144,145,146,147,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186],[95,137,162],[95,137,163],[95,137,149,164,165],[95,137,164,166,181,183],[95,137,149,169,170,171,172],[95,137,169,171],[95,137,169,170],[95,137,172],[95,137,173],[95,134,137,169],[95,137,149,175,176],[95,137,175,176],[95,137,142,157,169,177],[95,137,178],[95,137,157,179],[95,137,152,163,180],[95,137,142,181],[95,137,169,182],[95,137,156,183],[95,137,184],[95,137,142,149,151,160,169,180,183,185],[95,137,169,186],[95,137,219],[95,136,137,187,192,198],[95,137,196],[95,137,193,197],[67,68,71,72,73,74,75,76,77,95,137],[95,137,202],[95,137,201,202],[95,137,201],[95,137,201,202,203,205,206,209,210,211,212],[95,137,202,206],[95,137,201,202,203,205,206,207,208],[95,137,201,206],[95,137,206,210],[95,137,202,203,204],[95,137,203],[95,137,201,202,206],[95,137,195],[95,104,108,137,180],[95,104,137,169,180],[95,99,137],[95,101,104,137,177,180],[95,137,157,177],[95,137,187],[95,99,137,187],[95,101,104,137,157,180],[95,96,97,100,103,137,149,169,180],[95,104,111,137],[95,96,102,137],[95,104,125,126,137],[95,100,104,137,172,180,187],[95,125,137,187],[95,98,99,137,187],[95,104,137],[95,98,99,100,101,102,103,104,105,106,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,126,127,128,129,130,131,137],[95,104,119,137],[95,104,111,112,137],[95,102,104,112,113,137],[95,103,137],[95,96,99,104,137],[95,104,108,112,113,137],[95,108,137],[95,102,104,107,137,180],[95,96,101,104,111,137],[95,137,169],[95,99,104,125,137,185,187],[51,79,80,95,137],[51,52,66,78,79,95,137],[79,80,95,137],[78,80,95,137]],"fileInfos":[{"version":"e41c290ef7dd7dab3493e6cbe5909e0148edf4a8dad0271be08edec368a0f7b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"4fd3f3422b2d2a3dfd5cdd0f387b3a8ec45f006c6ea896a4cb41264c2100bb2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"69e65d976bf166ce4a9e6f6c18f94d2424bf116e90837ace179610dbccad9b42","affectsGlobalScope":true,"impliedFormat":1},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true,"impliedFormat":1},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"62bb211266ee48b2d0edf0d8d1b191f0c24fc379a82bd4c1692a082c540bc6b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"f1e2a172204962276504466a6393426d2ca9c54894b1ad0a6c9dad867a65f876","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"807e0e0bdc67605dd28efe18f20ab5fcd75d944ef95936120702335f9379094b","impliedFormat":1},{"version":"adf70476cffcfe6dcd30f98a1b12a23328592a372c72b50df3d1e42d625ce28e","signature":"9eb2d068482efaa4cf5bbdadaa8753fb5a0fc0b105f4c2e8dd5ffe498acd0fa0"},{"version":"332f8e56efa13b367cb696e2036918d80887b13177c12acda6d49ee145c333ca","impliedFormat":1},{"version":"675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","impliedFormat":1},{"version":"458111fc89d11d2151277c822dfdc1a28fa5b6b2493cf942e37d4cd0a6ee5f22","impliedFormat":1},{"version":"19c816167e076e7c24f074389c6cf3ed87bdbb917d1ea439ca281f9d26db2439","impliedFormat":1},{"version":"187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","impliedFormat":1},{"version":"febf0b2de54781102b00f61653b21377390a048fbf5262718c91860d11ff34a6","impliedFormat":1},{"version":"98f9d826db9cd99d27a01a59ee5f22863df00ccf1aaf43e1d7db80ebf716f7c3","impliedFormat":1},{"version":"0aaef8cded245bf5036a7a40b65622dd6c4da71f7a35343112edbe112b348a1e","impliedFormat":1},{"version":"00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","impliedFormat":1},{"version":"dcd91d3b697cb650b95db5471189b99815af5db2a1cd28760f91e0b12ede8ed5","impliedFormat":1},{"version":"3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","impliedFormat":1},{"version":"3cf0d343c2276842a5b617f22ba82af6322c7cfe8bb52238ffc0c491a3c21019","impliedFormat":1},{"version":"df996e25faa505f85aeb294d15ebe61b399cf1d1e49959cdfaf2cc0815c203f9","impliedFormat":1},{"version":"f2eff8704452659641164876c1ef0df4174659ce7311b0665798ea3f556fa9ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"6bb8d7433a29fbd33df8e9693f1788a273a9eb90b96c8f99c745678c7db623f1","impliedFormat":1},{"version":"ae4cda96b058f20db053c1f57e51257d1cffff9c0880326d2b8129ade5363402","impliedFormat":1},{"version":"bc8b2489bf29fa17cf4e7d5a4447daa456d7caf61455f50aafc34f1f3b915727","impliedFormat":99},{"version":"12115a2a03125cb3f600e80e7f43ef57f71a2951bb6e60695fb00ac8e12b27f3","impliedFormat":1},{"version":"d30e67059f5c545c5f8f0cc328a36d2e03b8c4a091b4301bc1d6afb2b1491a3a","impliedFormat":1},{"version":"02f7c65c690af708e9da6b09698c86d34b6b39a05acd8288a079859d920aea9f","impliedFormat":1},{"version":"7d498a2ce293026e8d4655dd9bfd5e2277d8ca248ab9da1a13f1424a378fc7cf","impliedFormat":99},{"version":"37550007de426cbbb418582008deae1a508935eaebbd4d41e22805ad3b485ad4","impliedFormat":1},{"version":"6b729c3274f6d4738fe470109bcb08b09ef98a6b356c01da3ca8dc0996b4458b","impliedFormat":1},{"version":"4dbf094f9d643b74e516779a802d9c5debd2929fb875ccfbc608d61afba064e4","impliedFormat":99},{"version":"828ea2cf5792eba68ebd41d6dd17ac67d31622b7889965210f8fa50a6eb29eba","impliedFormat":99},{"version":"e3913b35c221b4468658743d6496b83323c895f8e5b566c48d8844c01bf24738","impliedFormat":1},{"version":"0edeb1aa56b26b54484b319ca92c14bcbfd9bfb15fe2fd9cdf459d145134bc52","impliedFormat":1},{"version":"44906fac6e1d10d1901a8fbba7ef79e4c983813bbf512830d7daba3af5f8a6f7","signature":"a2e84d32f0e671959bf6533fa41a86712dbffb6cd5b5deb728fbd8b7d8462a7d"},{"version":"65640d20a16754f685c025cee9a1dc331d6eb6238c70efcf124ea2820f50d09f","signature":"af8157056827d109ee1f0d1f520927ccb1f71f0f5871b04a6e167d0059eab223"},{"version":"0f587778e3837c12c2db0fdae52acfbcb9a066b22e9b5f0fec3b12f1916097f7","signature":"9d36206a1dceb3d6b0d64ac55f036ee09ca40cb5085e65fa2c5e861f8bad84e8"},{"version":"059350b514633f4b367cc0194d7f985ae173d2fdf74e8411dc194b427b093d86","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"7983487d0fbefb9b6ccc94390e8c826328d87e21cd4a62ea5b4c6b8f99f32550","impliedFormat":1},{"version":"cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb","impliedFormat":1},{"version":"9d16476349353974716bd2ad745830d0542c18c9edad4566d77ccd9d61c6cfb2","impliedFormat":1},{"version":"93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","impliedFormat":1},{"version":"6704f0b54df85640baaeebd86c9d4a1dbb661d5a4d57a75bc84162f562f6531d","impliedFormat":1},{"version":"9d255af1b09c6697089d3c9bf438292a298d8b7a95c68793c9aae80afc9e5ca7","impliedFormat":1},{"version":"785b9d575b49124ce01b46f5b9402157c7611e6532effa562ac6aebec0074dfc","impliedFormat":1},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"030e350db2525514580ed054f712ffb22d273e6bc7eddc1bb7eda1e0ba5d395e","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"a79e62f1e20467e11a904399b8b18b18c0c6eea6b50c1168bf215356d5bebfaf","affectsGlobalScope":true,"impliedFormat":1},{"version":"13af9e8fb6757946c48117315866177b95e554d1e773577bb6ca6e40083b6d73","affectsGlobalScope":true,"impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"24bd580b5743dc56402c440dc7f9a4f5d592ad7a419f25414d37a7bfe11e342b","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"6bdc71028db658243775263e93a7db2fd2abfce3ca569c3cca5aee6ed5eb186d","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"d2bc987ae352271d0d615a420dcf98cc886aa16b87fb2b569358c1fe0ca0773d","affectsGlobalScope":true,"impliedFormat":1},{"version":"4f0539c58717cbc8b73acb29f9e992ab5ff20adba5f9b57130691c7f9b186a4d","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"76103716ba397bbb61f9fa9c9090dca59f39f9047cb1352b2179c5d8e7f4e8d0","impliedFormat":1},{"version":"53eac70430b30089a3a1959d8306b0f9cfaf0de75224b68ef25243e0b5ad1ca3","affectsGlobalScope":true,"impliedFormat":1},{"version":"4314c7a11517e221f7296b46547dbc4df047115b182f544d072bdccffa57fc72","impliedFormat":1},{"version":"115971d64632ea4742b5b115fb64ed04bcaae2c3c342f13d9ba7e3f9ee39c4e7","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","impliedFormat":1},{"version":"86956cc2eb9dd371d6fab493d326a574afedebf76eef3fa7833b8e0d9b52d6f1","affectsGlobalScope":true,"impliedFormat":1},{"version":"19d5f8d3930e9f99aa2c36258bf95abbe5adf7e889e6181872d1cdba7c9a7dd5","impliedFormat":1},{"version":"e6f5a38687bebe43a4cef426b69d34373ef68be9a6b1538ec0a371e69f309354","impliedFormat":1},{"version":"a6bf63d17324010ca1fbf0389cab83f93389bb0b9a01dc8a346d092f65b3605f","impliedFormat":1},{"version":"e009777bef4b023a999b2e5b9a136ff2cde37dc3f77c744a02840f05b18be8ff","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true,"impliedFormat":1},{"version":"88bc59b32d0d5b4e5d9632ac38edea23454057e643684c3c0b94511296f2998c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ff5a53a58e756d2661b73ba60ffe274231a4432d21f7a2d0d9e4f6aa99f4283","impliedFormat":1},{"version":"1e289f30a48126935a5d408a91129a13a59c9b0f8c007a816f9f16ef821e144e","impliedFormat":1},{"version":"2ea254f944dfe131df1264d1fb96e4b1f7d110195b21f1f5dbb68fdd394e5518","impliedFormat":1},{"version":"5135bdd72cc05a8192bd2e92f0914d7fc43ee077d1293dc622a049b7035a0afb","impliedFormat":1},{"version":"4f80de3a11c0d2f1329a72e92c7416b2f7eab14f67e92cac63bb4e8d01c6edc8","impliedFormat":1},{"version":"6d386bc0d7f3afa1d401afc3e00ed6b09205a354a9795196caed937494a713e6","impliedFormat":1},{"version":"b11cb909327c874a4e81bfb390bf0d231e5bf9439052689ab80ba8afa50da17b","affectsGlobalScope":true,"impliedFormat":1},{"version":"23459c1915878a7c1e86e8bdb9c187cddd3aea105b8b1dfce512f093c969bc7e","impliedFormat":1},{"version":"b1b6ee0d012aeebe11d776a155d8979730440082797695fc8e2a5c326285678f","impliedFormat":1},{"version":"45875bcae57270aeb3ebc73a5e3fb4c7b9d91d6b045f107c1d8513c28ece71c0","impliedFormat":1},{"version":"1dc73f8854e5c4506131c4d95b3a6c24d0c80336d3758e95110f4c7b5cb16397","affectsGlobalScope":true,"impliedFormat":1},{"version":"5f6f1d54779d0b9ed152b0516b0958cd34889764c1190434bbf18e7a8bb884cd","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"c6b4e0a02545304935ecbf7de7a8e056a31bb50939b5b321c9d50a405b5a0bba","impliedFormat":1},{"version":"fab29e6d649aa074a6b91e3bdf2bff484934a46067f6ee97a30fcd9762ae2213","impliedFormat":1},{"version":"8145e07aad6da5f23f2fcd8c8e4c5c13fb26ee986a79d03b0829b8fce152d8b2","impliedFormat":1},{"version":"e1120271ebbc9952fdc7b2dd3e145560e52e06956345e6fdf91d70ca4886464f","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"1cbae62b67f180291d211f0e1045fb923a8ec800cfbf9caa13223d769013dae2","impliedFormat":1},{"version":"b52d379b4939681f3781d1cfd5b2c3cbb35e7e76f2425172e165782f8a08228c","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","impliedFormat":1},{"version":"745c4240220559bd340c8aeb6e3c5270a709d3565e934dc22a69c304703956bc","affectsGlobalScope":true,"impliedFormat":1},{"version":"2754d8221d77c7b382096651925eb476f1066b3348da4b73fe71ced7801edada","impliedFormat":1},{"version":"993985beef40c7d113f6dd8f0ba26eed63028b691fbfeb6a5b63f26408dd2c6d","affectsGlobalScope":true,"impliedFormat":1},{"version":"bef91efa0baea5d0e0f0f27b574a8bc100ce62a6d7e70220a0d58af6acab5e89","affectsGlobalScope":true,"impliedFormat":1},{"version":"282fd2a1268a25345b830497b4b7bf5037a5e04f6a9c44c840cb605e19fea841","impliedFormat":1},{"version":"5360a27d3ebca11b224d7d3e38e3e2c63f8290cb1fcf6c3610401898f8e68bc3","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"7d6ff413e198d25639f9f01f16673e7df4e4bd2875a42455afd4ecc02ef156da","affectsGlobalScope":true,"impliedFormat":1},{"version":"cb094bb347d7df3380299eb69836c2c8758626ecf45917577707c03cf816b6f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"f689c4237b70ae6be5f0e4180e8833f34ace40529d1acc0676ab8fb8f70457d7","impliedFormat":1},{"version":"b02784111b3fc9c38590cd4339ff8718f9329a6f4d3fd66e9744a1dcd1d7e191","impliedFormat":1},{"version":"ac5ed35e649cdd8143131964336ab9076937fa91802ec760b3ea63b59175c10a","impliedFormat":1},{"version":"52a8e7e8a1454b6d1b5ad428efae3870ffc56f2c02d923467f2940c454aa9aec","affectsGlobalScope":true,"impliedFormat":1},{"version":"78dc0513cc4f1642906b74dda42146bcbd9df7401717d6e89ea6d72d12ecb539","impliedFormat":1},{"version":"ad90122e1cb599b3bc06a11710eb5489101be678f2920f2322b0ac3e195af78d","impliedFormat":1},{"version":"bf88ef4208a770ca39a844b182b3695df536326ea566893fdc5b8418702a331e","impliedFormat":1},{"version":"8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215","impliedFormat":1},{"version":"7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","impliedFormat":1},{"version":"f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","impliedFormat":1},{"version":"6c1e688f95fcaf53b1e41c0fdadf2c1cfc96fa924eaf7f9fdb60f96deb0a4986","impliedFormat":1},{"version":"0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","impliedFormat":1},{"version":"c085e9aa62d1ae1375794c1fb927a445fa105fed891a7e24edbb1c3300f7384a","impliedFormat":1},{"version":"f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","impliedFormat":1},{"version":"5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","impliedFormat":1},{"version":"3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","impliedFormat":1},{"version":"ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","impliedFormat":1},{"version":"6d969939c4a63f70f2aa49e88da6f64b655c8e6799612807bef41ccff6ea0da9","impliedFormat":1},{"version":"b2fdcc3836d425833af10e536ae5491c34e218bc71870f12a401720f874b6ce4","affectsGlobalScope":true,"impliedFormat":1},{"version":"3411c785dbe8fd42f7d644d1e05a7e72b624774a08a9356479754999419c3c5a","impliedFormat":99},{"version":"8fb8fdda477cd7382477ffda92c2bb7d9f7ef583b1aa531eb6b2dc2f0a206c10","impliedFormat":99},{"version":"66995b0c991b5c5d42eff1d950733f85482c7419f7296ab8952e03718169e379","impliedFormat":99},{"version":"33f3795a4617f98b1bb8dac36312119d02f31897ae75436a1e109ce042b48ee8","impliedFormat":99},{"version":"2850c9c5dc28d34ad5f354117d0419f325fc8932d2a62eadc4dc52c018cd569b","impliedFormat":99},{"version":"c753948f7e0febe7aa1a5b71a714001a127a68861309b2c4127775aa9b6d4f24","impliedFormat":99},{"version":"3e7a40e023e1d4a9eef1a6f08a3ded8edacb67ae5fce072014205d730f717ba5","impliedFormat":99},{"version":"a77be6fc44c876bc10c897107f84eaba10790913ebdcad40fcda7e47469b2160","impliedFormat":99},{"version":"382100b010774614310d994bbf16cc9cd291c14f0d417126c7a7cfad1dc1d3f8","impliedFormat":99},{"version":"91f5dbcdb25d145a56cffe957ec665256827892d779ef108eb2f3864faff523b","impliedFormat":99},{"version":"4fdf56315340bd1770eb52e1601c3a98e45b1d207202831357e99ce29c35b55c","impliedFormat":99},{"version":"927955a3de5857e0a1c575ced5a4245e74e6821d720ed213141347dd1870197f","impliedFormat":99},{"version":"be6fd74528b32986fbf0cd2cfa9192a5ed7f369060b32a7adcb0c8d055708e61","impliedFormat":99},{"version":"cc256fd958b33576ed32c7338c64adb0d08fc0c2c6525010202fab83f32745da","impliedFormat":1},{"version":"fd0589ca571ad090b531d8c095e26caa53d4825c64d3ff2b2b1ab95d72294175","impliedFormat":1},{"version":"669843ecafb89ae1e944df06360e8966219e4c1c34c0d28aa2503272cdd444a7","affectsGlobalScope":true,"impliedFormat":1},{"version":"d88a5e779faf033be3d52142a04fbe1cb96009868e3bbdd296b2bc6c59e06c0e","impliedFormat":1},{"version":"b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","impliedFormat":1},{"version":"70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e","impliedFormat":1},{"version":"e9eb1b173aa166892f3eddab182e49cfe59aa2e14d33aedb6b49d175ed6a3750","impliedFormat":1}],"root":[51,[79,82]],"options":{"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":5,"outDir":"./","strict":true,"target":3},"referencedMap":[[85,1],[83,2],[192,2],[195,3],[68,2],[72,2],[194,2],[88,4],[84,1],[86,5],[87,1],[89,2],[73,6],[70,2],[188,7],[189,2],[190,8],[191,9],[200,10],[215,11],[216,12],[66,13],[54,14],[55,15],[53,16],[56,17],[57,18],[58,19],[59,20],[60,21],[61,22],[62,23],[63,24],[64,25],[65,26],[67,2],[71,27],[134,28],[135,28],[136,29],[95,30],[137,31],[138,32],[139,33],[90,2],[93,34],[91,2],[92,2],[140,35],[141,36],[142,37],[143,38],[144,39],[145,40],[146,40],[148,41],[147,42],[149,43],[150,44],[151,45],[133,46],[94,2],[152,47],[153,48],[154,49],[187,50],[155,51],[156,52],[157,53],[158,54],[159,55],[160,56],[161,57],[162,58],[163,59],[164,60],[165,60],[166,61],[167,2],[168,2],[169,62],[171,63],[170,64],[172,65],[173,66],[174,67],[175,68],[176,69],[177,70],[178,71],[179,72],[180,73],[181,74],[182,75],[183,76],[184,77],[185,78],[186,79],[69,2],[217,2],[218,2],[77,6],[214,2],[219,2],[220,80],[193,2],[199,81],[74,2],[197,82],[198,83],[75,2],[78,84],[203,85],[212,86],[201,2],[202,87],[213,88],[208,89],[209,90],[207,91],[211,92],[205,93],[204,94],[210,95],[206,86],[76,2],[196,96],[52,2],[48,2],[49,2],[8,2],[9,2],[13,2],[12,2],[2,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[3,2],[50,2],[22,2],[23,2],[4,2],[24,2],[28,2],[25,2],[26,2],[27,2],[29,2],[30,2],[31,2],[5,2],[32,2],[33,2],[34,2],[35,2],[6,2],[39,2],[36,2],[37,2],[38,2],[40,2],[7,2],[41,2],[46,2],[47,2],[42,2],[43,2],[44,2],[45,2],[1,2],[11,2],[10,2],[111,97],[121,98],[110,97],[131,99],[102,100],[101,101],[130,102],[124,103],[129,104],[104,105],[118,106],[103,107],[127,108],[99,109],[98,102],[128,110],[100,111],[105,112],[106,2],[109,112],[96,2],[132,113],[122,114],[113,115],[114,116],[116,117],[112,118],[115,119],[125,102],[107,120],[108,121],[117,122],[97,123],[120,114],[119,112],[123,2],[126,124],[51,2],[81,125],[80,126],[82,127],[79,128]],"version":"5.7.3"}
package/lib/urlhash.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import LayerSwitcher from './index';
1
+ import LayerSwitcher from './layerswitcher';
2
+ import type maplibregl from 'maplibre-gl';
2
3
  export interface HashComponents {
3
4
  zoom?: number;
4
5
  center?: [number, number];
@@ -8,6 +9,9 @@ export interface HashComponents {
8
9
  export declare function decodeHash(hash: string): HashComponents;
9
10
  export declare function encodeHash(components: HashComponents): string;
10
11
  type ParameterCallbackFunction = (value: string | null) => void;
12
+ /**
13
+ * Object to manage the URL hash for a Maplibre GL JS map.
14
+ */
11
15
  declare class URLHash {
12
16
  layerSwitcher: LayerSwitcher;
13
17
  _map: maplibregl.Map | undefined;
@@ -39,7 +43,7 @@ declare class URLHash {
39
43
  * Modify MapLibre GL map constructor options to include values from the URL hash.
40
44
  *
41
45
  * @param options the original options passed to the MapLibre GL `Map` constructor.
42
- * You should include defaults for the `center` and `zoom` parameters.
46
+ * You can include defaults for the `center` and `zoom` parameters.
43
47
  * @returns an options object to be passed to the `Map` constructor, with the
44
48
  * `center` and `zoom` parameters updated if necessary. Other options are untouched.
45
49
  */
@@ -1 +1 @@
1
- {"version":3,"file":"urlhash.d.ts","sourceRoot":"","sources":["../src/urlhash.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,SAAS,CAAC;AAGpC,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACpC;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAsBvD;AAED,wBAAgB,UAAU,CAAC,UAAU,EAAE,cAAc,GAAG,MAAM,CA2B7D;AAED,KAAK,yBAAyB,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;AAEhE,cAAM,OAAO;IACX,aAAa,EAAE,aAAa,CAAC;IAC7B,IAAI,EAAE,UAAU,CAAC,GAAG,GAAG,SAAS,CAAC;IACjC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;gBAExC,aAAa,EAAE,aAAa;IAMxC,MAAM,CAAC,GAAG,EAAE,UAAU,CAAC,GAAG;IAkB1B;;;;;;OAMG;IACH,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,yBAAyB;IAI/D;;;;;;OAMG;IACH,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAW9C,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAMtD,aAAa,CAAC,QAAQ,EAAE,MAAM;IA6B9B,WAAW;IASX,aAAa;IAkBb;;;;;;;OAOG;IACH,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU;CAS5D;AAED,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"urlhash.d.ts","sourceRoot":"","sources":["../src/urlhash.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,UAAU,MAAM,aAAa,CAAA;AAEzC,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACzB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACnC;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAsBvD;AAED,wBAAgB,UAAU,CAAC,UAAU,EAAE,cAAc,GAAG,MAAM,CA2B7D;AAED,KAAK,yBAAyB,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;AAE/D;;GAEG;AACH,cAAM,OAAO;IACX,aAAa,EAAE,aAAa,CAAA;IAC5B,IAAI,EAAE,UAAU,CAAC,GAAG,GAAG,SAAS,CAAA;IAChC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAClC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAA;gBAEvC,aAAa,EAAE,aAAa;IAMxC,MAAM,CAAC,GAAG,EAAE,UAAU,CAAC,GAAG;IAmB1B;;;;;;OAMG;IACH,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,yBAAyB;IAI/D;;;;;;OAMG;IACH,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAW9C,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAMtD,aAAa,CAAC,QAAQ,EAAE,MAAM;IA6B9B,WAAW;IASX,aAAa;IAkBb;;;;;;;OAOG;IACH,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU;CAS5D;AAED,eAAe,OAAO,CAAA"}
package/lib/urlhash.js CHANGED
@@ -40,6 +40,9 @@ export function encodeHash(components) {
40
40
  }
41
41
  return hash;
42
42
  }
43
+ /**
44
+ * Object to manage the URL hash for a Maplibre GL JS map.
45
+ */
43
46
  class URLHash {
44
47
  constructor(layerSwitcher) {
45
48
  this.layerSwitcher = layerSwitcher;
@@ -48,6 +51,7 @@ class URLHash {
48
51
  }
49
52
  enable(map) {
50
53
  this._map = map;
54
+ this.layerSwitcher.urlhash = this;
51
55
  this._onHashChange(window.location.hash);
52
56
  map.on('moveend', () => {
53
57
  this._updateHash();
@@ -109,7 +113,7 @@ class URLHash {
109
113
  if (((_a = this._map) === null || _a === void 0 ? void 0 : _a.isStyleLoaded()) && hash.center && hash.zoom) {
110
114
  this._map.jumpTo({
111
115
  center: hash.center,
112
- zoom: hash.zoom,
116
+ zoom: hash.zoom
113
117
  });
114
118
  }
115
119
  if (this.layerSwitcher && hash.layers !== undefined) {
@@ -133,7 +137,7 @@ class URLHash {
133
137
  const components = {
134
138
  center: [lng, lat],
135
139
  zoom: this._map.getZoom(),
136
- additional: this.additional,
140
+ additional: this.additional
137
141
  };
138
142
  if (this.layerSwitcher) {
139
143
  components.layers = this.layerSwitcher.getURLString();
@@ -144,7 +148,7 @@ class URLHash {
144
148
  * Modify MapLibre GL map constructor options to include values from the URL hash.
145
149
  *
146
150
  * @param options the original options passed to the MapLibre GL `Map` constructor.
147
- * You should include defaults for the `center` and `zoom` parameters.
151
+ * You can include defaults for the `center` and `zoom` parameters.
148
152
  * @returns an options object to be passed to the `Map` constructor, with the
149
153
  * `center` and `zoom` parameters updated if necessary. Other options are untouched.
150
154
  */
@@ -1,17 +1,17 @@
1
- import LayerSwitcher from '.';
1
+ import LayerSwitcher from './layerswitcher';
2
2
  import URLHash, { decodeHash, encodeHash } from './urlhash';
3
3
  test('decodeHash', () => {
4
4
  expect(decodeHash('#10/51.505/-0.09')).toStrictEqual({
5
5
  center: [-0.09, 51.505],
6
6
  zoom: 10,
7
7
  layers: '',
8
- additional: {},
8
+ additional: {}
9
9
  });
10
10
  expect(decodeHash('#10/51.505/-0.09/A,B,C')).toStrictEqual({
11
11
  center: [-0.09, 51.505],
12
12
  zoom: 10,
13
13
  layers: 'A,B,C',
14
- additional: {},
14
+ additional: {}
15
15
  });
16
16
  });
17
17
  test('Test hash encoding round trip', () => {
@@ -27,7 +27,7 @@ test('Test hash encoding round trip', () => {
27
27
  expect(decodeHash(encodeHash(components))).toStrictEqual(components);
28
28
  });
29
29
  test('test URLHash class', () => {
30
- let layer_switcher = new LayerSwitcher({}, []);
30
+ let layer_switcher = new LayerSwitcher([]);
31
31
  let url_hash = new URLHash(layer_switcher);
32
32
  let returned_value = null;
33
33
  url_hash.registerHandler('a', (value) => {
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@russss/maplibregl-layer-switcher",
3
- "version": "1.2.4",
3
+ "version": "2.0.1",
4
+ "type": "module",
4
5
  "description": "Layer switcher for Maplibre GL JS based on layer prefixes",
5
6
  "exports": {
6
- ".": "./lib/index.js",
7
- "./urlhash": "./lib/urlhash.js"
7
+ ".": "./lib/index.js"
8
8
  },
9
9
  "types": "./lib/index.d.ts",
10
10
  "scripts": {
@@ -13,20 +13,25 @@
13
13
  },
14
14
  "author": "Russ Garrett",
15
15
  "license": "ISC",
16
+ "repository": {
17
+ "url": "https://github.com/russss/maplibregl-layer-switcher",
18
+ "type": "git"
19
+ },
16
20
  "dependencies": {
17
- "lodash.invert": "^4.3.0",
18
21
  "lodash.isequal": "^4.5.0",
19
22
  "redom": "^3.24.2"
20
23
  },
21
24
  "devDependencies": {
25
+ "@types/node": "^22.13.4",
22
26
  "@types/jest": "^29.5.3",
23
- "@types/lodash.invert": "^4.3.7",
24
27
  "@types/lodash.isequal": "^4.5.6",
25
28
  "jest": "^29.6.1",
26
29
  "jest-environment-jsdom": "^29.6.1",
27
- "maplibre-gl": "^3.1.0",
28
- "prettier": "^3.0.0",
30
+ "maplibre-gl": "^5.1.0",
31
+ "prettier": "^3.3.3",
29
32
  "ts-jest": "^29.1.1",
30
- "typescript": "^5.3.3"
33
+ "ts-node": "^10.9.2",
34
+ "typescript": "^5.7.3",
35
+ "vite": "^6.1.1"
31
36
  }
32
37
  }