signalk-ais-navionics-converter 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc +24 -0
- package/README.md +5 -1
- package/index.js +44 -14
- package/package.json +36 -2
- package/public/main.js +310 -0
- package/public/remoteEntry.js +514 -0
- package/public/src_components_PluginConfigurationPanel_jsx.js +22 -0
- package/public/vendors-node_modules_react_index_js.js +76 -0
- package/src/components/PluginConfigurationPanel.jsx +786 -0
- package/src/index.js +0 -0
- package/webpack.config.js +55 -0
- package/img/OpenCpn1.png +0 -0
- package/img/OpenCpn2.png +0 -0
package/.babelrc
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"presets": [
|
|
3
|
+
[
|
|
4
|
+
"@babel/preset-env",
|
|
5
|
+
{
|
|
6
|
+
"targets": {
|
|
7
|
+
"browsers": [
|
|
8
|
+
"> 1%",
|
|
9
|
+
"last 2 versions",
|
|
10
|
+
"not dead"
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
"useBuiltIns": "entry",
|
|
14
|
+
"corejs": 3
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
[
|
|
18
|
+
"@babel/preset-react",
|
|
19
|
+
{
|
|
20
|
+
"runtime": "automatic"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
]
|
|
24
|
+
}
|
package/README.md
CHANGED
|
@@ -315,4 +315,8 @@ Issues and pull requests are welcome!
|
|
|
315
315
|
- SignalK and AISFleet cloud data integration
|
|
316
316
|
- VesselFinder.com UDP forwarding
|
|
317
317
|
- Smart filtering and data correction
|
|
318
|
-
- Configurable update intervals
|
|
318
|
+
- Configurable update intervals
|
|
319
|
+
### Version 1.0.1
|
|
320
|
+
- enhanced debug logs
|
|
321
|
+
### Version 1.0.2
|
|
322
|
+
- Changed to "Embedded Plugin Configuration Forms"
|
package/index.js
CHANGED
|
@@ -21,6 +21,8 @@ module.exports = function(app) {
|
|
|
21
21
|
let ownMMSI = null;
|
|
22
22
|
let vesselFinderLastUpdate = 0;
|
|
23
23
|
let signalkApiUrl = null;
|
|
24
|
+
let cloudVesselsCache = null;
|
|
25
|
+
let cloudVesselsLastFetch = 0;
|
|
24
26
|
|
|
25
27
|
plugin.schema = {
|
|
26
28
|
type: 'object',
|
|
@@ -143,6 +145,12 @@ module.exports = function(app) {
|
|
|
143
145
|
description: 'Beside vessels available in SignalK vessels from aisfleet.com will taken into account',
|
|
144
146
|
default: true
|
|
145
147
|
},
|
|
148
|
+
cloudVesselsUpdateInterval: {
|
|
149
|
+
type: 'number',
|
|
150
|
+
title: 'Cloud vessels update interval (seconds)',
|
|
151
|
+
description: 'How often to fetch vessels from AISFleet.com (default: 60, recommended: 60-300)',
|
|
152
|
+
default: 60
|
|
153
|
+
},
|
|
146
154
|
cloudVesselsRadius: {
|
|
147
155
|
type: 'number',
|
|
148
156
|
title: 'Radius (from own vessel) to include vessels from AISFleet.com (nautical miles)',
|
|
@@ -199,6 +207,8 @@ module.exports = function(app) {
|
|
|
199
207
|
|
|
200
208
|
previousVesselsState.clear();
|
|
201
209
|
lastTCPBroadcast.clear();
|
|
210
|
+
cloudVesselsCache = null; // ← NEU
|
|
211
|
+
cloudVesselsLastFetch = 0; // ← NEU
|
|
202
212
|
};
|
|
203
213
|
|
|
204
214
|
function getOwnMMSI() {
|
|
@@ -299,19 +309,26 @@ module.exports = function(app) {
|
|
|
299
309
|
app.debug(`Map sizes - previousVesselsState: ${previousVesselsState.size}, lastTCPBroadcast: ${lastTCPBroadcast.size}`);
|
|
300
310
|
}
|
|
301
311
|
|
|
302
|
-
function
|
|
312
|
+
function fetchVesselsFromAPI() {
|
|
303
313
|
return new Promise((resolve, reject) => {
|
|
314
|
+
if (!signalkApiUrl) {
|
|
315
|
+
app.error('signalkApiUrl not initialized yet');
|
|
316
|
+
resolve(null);
|
|
317
|
+
return;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
const url = `${signalkApiUrl}/vessels`;
|
|
304
321
|
app.debug(`Fetching SignalK vessels from URL: ${url}`);
|
|
305
322
|
|
|
306
323
|
const http = require('http');
|
|
307
324
|
|
|
308
325
|
http.get(url, (res) => {
|
|
326
|
+
app.debug(`HTTP Response Status: ${res.statusCode}`);
|
|
309
327
|
let data = '';
|
|
310
328
|
|
|
311
|
-
// Prüfe HTTP Status Code
|
|
312
329
|
if (res.statusCode !== 200) {
|
|
313
330
|
app.error(`HTTP ${res.statusCode} from ${url}`);
|
|
314
|
-
|
|
331
|
+
resolve(null); // ← Wichtig: resolve(null) statt reject()
|
|
315
332
|
return;
|
|
316
333
|
}
|
|
317
334
|
|
|
@@ -320,26 +337,24 @@ module.exports = function(app) {
|
|
|
320
337
|
});
|
|
321
338
|
|
|
322
339
|
res.on('end', () => {
|
|
340
|
+
app.debug(`HTTP Response received, length: ${data.length} bytes`);
|
|
323
341
|
try {
|
|
324
342
|
const result = JSON.parse(data);
|
|
343
|
+
app.debug(`Parsed JSON, ${Object.keys(result).length} vessels from SignalK API`);
|
|
325
344
|
resolve(result);
|
|
326
345
|
} catch (err) {
|
|
327
346
|
app.error(`Invalid JSON from ${url}: ${err.message}`);
|
|
328
347
|
app.error(`Data preview: ${data.substring(0, 200)}`);
|
|
329
|
-
reject(
|
|
348
|
+
resolve(null); // ← Wichtig: resolve(null) statt reject()
|
|
330
349
|
}
|
|
331
350
|
});
|
|
332
351
|
}).on('error', (err) => {
|
|
333
352
|
app.error(`HTTP request error for ${url}: ${err.message}`);
|
|
334
|
-
reject(
|
|
353
|
+
resolve(null); // ← Wichtig: resolve(null) statt reject()
|
|
335
354
|
});
|
|
336
355
|
});
|
|
337
356
|
}
|
|
338
357
|
|
|
339
|
-
function fetchVesselsFromAPI() {
|
|
340
|
-
return fetchFromURL(`${signalkApiUrl}/vessels`);
|
|
341
|
-
}
|
|
342
|
-
|
|
343
358
|
function fetchCloudVessels(options) {
|
|
344
359
|
if (!options.cloudVesselsEnabled) {
|
|
345
360
|
return Promise.resolve(null);
|
|
@@ -694,18 +709,34 @@ module.exports = function(app) {
|
|
|
694
709
|
return merged;
|
|
695
710
|
}
|
|
696
711
|
|
|
697
|
-
|
|
712
|
+
function getVessels(options) {
|
|
713
|
+
const now = Date.now();
|
|
714
|
+
const cloudUpdateInterval = (options.cloudVesselsUpdateInterval || 60) * 1000; // Default 60 Sekunden
|
|
715
|
+
|
|
716
|
+
// Entscheide ob Cloud Vessels neu geholt werden müssen
|
|
717
|
+
const needsCloudUpdate = options.cloudVesselsEnabled &&
|
|
718
|
+
(now - cloudVesselsLastFetch >= cloudUpdateInterval);
|
|
719
|
+
|
|
720
|
+
const cloudPromise = needsCloudUpdate
|
|
721
|
+
? fetchCloudVessels(options).then(result => {
|
|
722
|
+
if (result) {
|
|
723
|
+
cloudVesselsCache = result;
|
|
724
|
+
cloudVesselsLastFetch = now;
|
|
725
|
+
}
|
|
726
|
+
return cloudVesselsCache;
|
|
727
|
+
})
|
|
728
|
+
: Promise.resolve(cloudVesselsCache);
|
|
729
|
+
|
|
698
730
|
return Promise.all([
|
|
699
731
|
fetchVesselsFromAPI(),
|
|
700
|
-
|
|
732
|
+
cloudPromise
|
|
701
733
|
]).then(([signalkVessels, cloudVessels]) => {
|
|
702
734
|
const vessels = [];
|
|
703
735
|
|
|
704
736
|
// Merge beide Datenquellen
|
|
705
737
|
const allVessels = mergeVesselSources(signalkVessels, cloudVessels, options);
|
|
706
738
|
|
|
707
|
-
if (!allVessels) return vessels;
|
|
708
|
-
|
|
739
|
+
if (!allVessels) return vessels;
|
|
709
740
|
for (const [vesselId, vessel] of Object.entries(allVessels)) {
|
|
710
741
|
if (vesselId === 'self') continue;
|
|
711
742
|
|
|
@@ -897,7 +928,6 @@ module.exports = function(app) {
|
|
|
897
928
|
if (shouldLogDebug) {
|
|
898
929
|
app.debug(`[${vessel.mmsi}] Type 1: ${sentence1}`);
|
|
899
930
|
}
|
|
900
|
-
|
|
901
931
|
if (sendToTCP) {
|
|
902
932
|
broadcastTCP(sentence1);
|
|
903
933
|
sentCount++;
|
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "signalk-ais-navionics-converter",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "SignalK plugin to convert AIS data to NMEA 0183 sentences to TCP clients (e.g. Navionics boating app, OpenCpn) and optional to vesselfinder.com",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"signalk-node-server-plugin",
|
|
8
8
|
"signalk-category-utility",
|
|
9
|
-
"signalk-category-ais"
|
|
9
|
+
"signalk-category-ais",
|
|
10
|
+
"signalk-category-nmea-0183",
|
|
11
|
+
"signalk-plugin-configurator"
|
|
10
12
|
],
|
|
11
13
|
"author": "Dirk Behrendt",
|
|
12
14
|
"license": "MIT",
|
|
@@ -17,5 +19,37 @@
|
|
|
17
19
|
"dependencies": {
|
|
18
20
|
"axios": "^1.13.2"
|
|
19
21
|
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@babel/core": "^7.23.0",
|
|
24
|
+
"@babel/preset-env": "^7.23.0",
|
|
25
|
+
"@babel/preset-react": "^7.22.0",
|
|
26
|
+
"@signalk/server-admin-ui-dependencies": "^1.0.0",
|
|
27
|
+
"babel-loader": "^9.1.3",
|
|
28
|
+
"css-loader": "^6.8.1",
|
|
29
|
+
"file-loader": "^6.2.0",
|
|
30
|
+
"style-loader": "^3.3.3",
|
|
31
|
+
"webpack": "^5.88.0",
|
|
32
|
+
"webpack-cli": "^5.1.4"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "webpack --mode development"
|
|
36
|
+
},
|
|
37
|
+
"bugs": {
|
|
38
|
+
"url": "https://github.com/formifan2002/signalk-ais-navionics-converter/issues"
|
|
39
|
+
},
|
|
40
|
+
"engines": {
|
|
41
|
+
"node": ">=14.0.0"
|
|
42
|
+
},
|
|
43
|
+
"files": [
|
|
44
|
+
"index.js",
|
|
45
|
+
"ais-encoder.js",
|
|
46
|
+
"package.json",
|
|
47
|
+
"public/",
|
|
48
|
+
"src/",
|
|
49
|
+
"webpack.config.js",
|
|
50
|
+
".babelrc",
|
|
51
|
+
"README.md",
|
|
52
|
+
"LICENSE"
|
|
53
|
+
],
|
|
20
54
|
"signalk-plugin-enabled-by-default": false
|
|
21
55
|
}
|
package/public/main.js
ADDED
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
3
|
+
* This devtool is neither made for production nor for readable output files.
|
|
4
|
+
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
5
|
+
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
6
|
+
* or disable the default devtool with "devtool: false".
|
|
7
|
+
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
8
|
+
*/
|
|
9
|
+
/******/ (() => { // webpackBootstrap
|
|
10
|
+
/******/ var __webpack_modules__ = ({
|
|
11
|
+
|
|
12
|
+
/***/ "./src/index.js":
|
|
13
|
+
/*!**********************!*\
|
|
14
|
+
!*** ./src/index.js ***!
|
|
15
|
+
\**********************/
|
|
16
|
+
/***/ (() => {
|
|
17
|
+
|
|
18
|
+
eval("{\n\n//# sourceURL=webpack://signalk-ais-navionics-converter/./src/index.js?\n}");
|
|
19
|
+
|
|
20
|
+
/***/ })
|
|
21
|
+
|
|
22
|
+
/******/ });
|
|
23
|
+
/************************************************************************/
|
|
24
|
+
/******/ // The module cache
|
|
25
|
+
/******/ var __webpack_module_cache__ = {};
|
|
26
|
+
/******/
|
|
27
|
+
/******/ // The require function
|
|
28
|
+
/******/ function __webpack_require__(moduleId) {
|
|
29
|
+
/******/ // Check if module is in cache
|
|
30
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
31
|
+
/******/ if (cachedModule !== undefined) {
|
|
32
|
+
/******/ return cachedModule.exports;
|
|
33
|
+
/******/ }
|
|
34
|
+
/******/ // Create a new module (and put it into the cache)
|
|
35
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
36
|
+
/******/ // no module.id needed
|
|
37
|
+
/******/ // no module.loaded needed
|
|
38
|
+
/******/ exports: {}
|
|
39
|
+
/******/ };
|
|
40
|
+
/******/
|
|
41
|
+
/******/ // Execute the module function
|
|
42
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
43
|
+
/******/
|
|
44
|
+
/******/ // Return the exports of the module
|
|
45
|
+
/******/ return module.exports;
|
|
46
|
+
/******/ }
|
|
47
|
+
/******/
|
|
48
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
49
|
+
/******/ __webpack_require__.m = __webpack_modules__;
|
|
50
|
+
/******/
|
|
51
|
+
/******/ // expose the module cache
|
|
52
|
+
/******/ __webpack_require__.c = __webpack_module_cache__;
|
|
53
|
+
/******/
|
|
54
|
+
/************************************************************************/
|
|
55
|
+
/******/ /* webpack/runtime/ensure chunk */
|
|
56
|
+
/******/ (() => {
|
|
57
|
+
/******/ __webpack_require__.f = {};
|
|
58
|
+
/******/ // This file contains only the entry chunk.
|
|
59
|
+
/******/ // The chunk loading function for additional chunks
|
|
60
|
+
/******/ __webpack_require__.e = (chunkId) => {
|
|
61
|
+
/******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
|
|
62
|
+
/******/ __webpack_require__.f[key](chunkId, promises);
|
|
63
|
+
/******/ return promises;
|
|
64
|
+
/******/ }, []));
|
|
65
|
+
/******/ };
|
|
66
|
+
/******/ })();
|
|
67
|
+
/******/
|
|
68
|
+
/******/ /* webpack/runtime/get javascript chunk filename */
|
|
69
|
+
/******/ (() => {
|
|
70
|
+
/******/ // This function allow to reference async chunks
|
|
71
|
+
/******/ __webpack_require__.u = (chunkId) => {
|
|
72
|
+
/******/ // return url for filenames based on template
|
|
73
|
+
/******/ return "" + chunkId + ".js";
|
|
74
|
+
/******/ };
|
|
75
|
+
/******/ })();
|
|
76
|
+
/******/
|
|
77
|
+
/******/ /* webpack/runtime/global */
|
|
78
|
+
/******/ (() => {
|
|
79
|
+
/******/ __webpack_require__.g = (function() {
|
|
80
|
+
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
81
|
+
/******/ try {
|
|
82
|
+
/******/ return this || new Function('return this')();
|
|
83
|
+
/******/ } catch (e) {
|
|
84
|
+
/******/ if (typeof window === 'object') return window;
|
|
85
|
+
/******/ }
|
|
86
|
+
/******/ })();
|
|
87
|
+
/******/ })();
|
|
88
|
+
/******/
|
|
89
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
90
|
+
/******/ (() => {
|
|
91
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
92
|
+
/******/ })();
|
|
93
|
+
/******/
|
|
94
|
+
/******/ /* webpack/runtime/load script */
|
|
95
|
+
/******/ (() => {
|
|
96
|
+
/******/ var inProgress = {};
|
|
97
|
+
/******/ var dataWebpackPrefix = "signalk-ais-navionics-converter:";
|
|
98
|
+
/******/ // loadScript function to load a script via script tag
|
|
99
|
+
/******/ __webpack_require__.l = (url, done, key, chunkId) => {
|
|
100
|
+
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
|
101
|
+
/******/ var script, needAttach;
|
|
102
|
+
/******/ if(key !== undefined) {
|
|
103
|
+
/******/ var scripts = document.getElementsByTagName("script");
|
|
104
|
+
/******/ for(var i = 0; i < scripts.length; i++) {
|
|
105
|
+
/******/ var s = scripts[i];
|
|
106
|
+
/******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
|
|
107
|
+
/******/ }
|
|
108
|
+
/******/ }
|
|
109
|
+
/******/ if(!script) {
|
|
110
|
+
/******/ needAttach = true;
|
|
111
|
+
/******/ script = document.createElement('script');
|
|
112
|
+
/******/
|
|
113
|
+
/******/ script.charset = 'utf-8';
|
|
114
|
+
/******/ if (__webpack_require__.nc) {
|
|
115
|
+
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
|
116
|
+
/******/ }
|
|
117
|
+
/******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
|
|
118
|
+
/******/
|
|
119
|
+
/******/ script.src = url;
|
|
120
|
+
/******/ }
|
|
121
|
+
/******/ inProgress[url] = [done];
|
|
122
|
+
/******/ var onScriptComplete = (prev, event) => {
|
|
123
|
+
/******/ // avoid mem leaks in IE.
|
|
124
|
+
/******/ script.onerror = script.onload = null;
|
|
125
|
+
/******/ clearTimeout(timeout);
|
|
126
|
+
/******/ var doneFns = inProgress[url];
|
|
127
|
+
/******/ delete inProgress[url];
|
|
128
|
+
/******/ script.parentNode && script.parentNode.removeChild(script);
|
|
129
|
+
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
|
|
130
|
+
/******/ if(prev) return prev(event);
|
|
131
|
+
/******/ }
|
|
132
|
+
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
|
133
|
+
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
|
134
|
+
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
|
135
|
+
/******/ needAttach && document.head.appendChild(script);
|
|
136
|
+
/******/ };
|
|
137
|
+
/******/ })();
|
|
138
|
+
/******/
|
|
139
|
+
/******/ /* webpack/runtime/sharing */
|
|
140
|
+
/******/ (() => {
|
|
141
|
+
/******/ __webpack_require__.S = {};
|
|
142
|
+
/******/ var initPromises = {};
|
|
143
|
+
/******/ var initTokens = {};
|
|
144
|
+
/******/ __webpack_require__.I = (name, initScope) => {
|
|
145
|
+
/******/ if(!initScope) initScope = [];
|
|
146
|
+
/******/ // handling circular init calls
|
|
147
|
+
/******/ var initToken = initTokens[name];
|
|
148
|
+
/******/ if(!initToken) initToken = initTokens[name] = {};
|
|
149
|
+
/******/ if(initScope.indexOf(initToken) >= 0) return;
|
|
150
|
+
/******/ initScope.push(initToken);
|
|
151
|
+
/******/ // only runs once
|
|
152
|
+
/******/ if(initPromises[name]) return initPromises[name];
|
|
153
|
+
/******/ // creates a new share scope if needed
|
|
154
|
+
/******/ if(!__webpack_require__.o(__webpack_require__.S, name)) __webpack_require__.S[name] = {};
|
|
155
|
+
/******/ // runs all init snippets from all modules reachable
|
|
156
|
+
/******/ var scope = __webpack_require__.S[name];
|
|
157
|
+
/******/ var warn = (msg) => {
|
|
158
|
+
/******/ if (typeof console !== "undefined" && console.warn) console.warn(msg);
|
|
159
|
+
/******/ };
|
|
160
|
+
/******/ var uniqueName = "signalk-ais-navionics-converter";
|
|
161
|
+
/******/ var register = (name, version, factory, eager) => {
|
|
162
|
+
/******/ var versions = scope[name] = scope[name] || {};
|
|
163
|
+
/******/ var activeVersion = versions[version];
|
|
164
|
+
/******/ if(!activeVersion || (!activeVersion.loaded && (!eager != !activeVersion.eager ? eager : uniqueName > activeVersion.from))) versions[version] = { get: factory, from: uniqueName, eager: !!eager };
|
|
165
|
+
/******/ };
|
|
166
|
+
/******/ var initExternal = (id) => {
|
|
167
|
+
/******/ var handleError = (err) => (warn("Initialization of sharing external failed: " + err));
|
|
168
|
+
/******/ try {
|
|
169
|
+
/******/ var module = __webpack_require__(id);
|
|
170
|
+
/******/ if(!module) return;
|
|
171
|
+
/******/ var initFn = (module) => (module && module.init && module.init(__webpack_require__.S[name], initScope))
|
|
172
|
+
/******/ if(module.then) return promises.push(module.then(initFn, handleError));
|
|
173
|
+
/******/ var initResult = initFn(module);
|
|
174
|
+
/******/ if(initResult && initResult.then) return promises.push(initResult['catch'](handleError));
|
|
175
|
+
/******/ } catch(err) { handleError(err); }
|
|
176
|
+
/******/ }
|
|
177
|
+
/******/ var promises = [];
|
|
178
|
+
/******/ switch(name) {
|
|
179
|
+
/******/ case "default": {
|
|
180
|
+
/******/ register("react", "16.14.0", () => (__webpack_require__.e("vendors-node_modules_react_index_js").then(() => (() => (__webpack_require__(/*! ./node_modules/react/index.js */ "./node_modules/react/index.js"))))));
|
|
181
|
+
/******/ }
|
|
182
|
+
/******/ break;
|
|
183
|
+
/******/ }
|
|
184
|
+
/******/ if(!promises.length) return initPromises[name] = 1;
|
|
185
|
+
/******/ return initPromises[name] = Promise.all(promises).then(() => (initPromises[name] = 1));
|
|
186
|
+
/******/ };
|
|
187
|
+
/******/ })();
|
|
188
|
+
/******/
|
|
189
|
+
/******/ /* webpack/runtime/publicPath */
|
|
190
|
+
/******/ (() => {
|
|
191
|
+
/******/ var scriptUrl;
|
|
192
|
+
/******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + "";
|
|
193
|
+
/******/ var document = __webpack_require__.g.document;
|
|
194
|
+
/******/ if (!scriptUrl && document) {
|
|
195
|
+
/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')
|
|
196
|
+
/******/ scriptUrl = document.currentScript.src;
|
|
197
|
+
/******/ if (!scriptUrl) {
|
|
198
|
+
/******/ var scripts = document.getElementsByTagName("script");
|
|
199
|
+
/******/ if(scripts.length) {
|
|
200
|
+
/******/ var i = scripts.length - 1;
|
|
201
|
+
/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;
|
|
202
|
+
/******/ }
|
|
203
|
+
/******/ }
|
|
204
|
+
/******/ }
|
|
205
|
+
/******/ // When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration
|
|
206
|
+
/******/ // or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.
|
|
207
|
+
/******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
|
|
208
|
+
/******/ scriptUrl = scriptUrl.replace(/^blob:/, "").replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
|
|
209
|
+
/******/ __webpack_require__.p = scriptUrl;
|
|
210
|
+
/******/ })();
|
|
211
|
+
/******/
|
|
212
|
+
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
213
|
+
/******/ (() => {
|
|
214
|
+
/******/ // no baseURI
|
|
215
|
+
/******/
|
|
216
|
+
/******/ // object to store loaded and loading chunks
|
|
217
|
+
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
218
|
+
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
|
219
|
+
/******/ var installedChunks = {
|
|
220
|
+
/******/ "main": 0
|
|
221
|
+
/******/ };
|
|
222
|
+
/******/
|
|
223
|
+
/******/ __webpack_require__.f.j = (chunkId, promises) => {
|
|
224
|
+
/******/ // JSONP chunk loading for javascript
|
|
225
|
+
/******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
|
|
226
|
+
/******/ if(installedChunkData !== 0) { // 0 means "already installed".
|
|
227
|
+
/******/
|
|
228
|
+
/******/ // a Promise means "currently loading".
|
|
229
|
+
/******/ if(installedChunkData) {
|
|
230
|
+
/******/ promises.push(installedChunkData[2]);
|
|
231
|
+
/******/ } else {
|
|
232
|
+
/******/ if(true) { // all chunks have JS
|
|
233
|
+
/******/ // setup Promise in chunk cache
|
|
234
|
+
/******/ var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
|
|
235
|
+
/******/ promises.push(installedChunkData[2] = promise);
|
|
236
|
+
/******/
|
|
237
|
+
/******/ // start chunk loading
|
|
238
|
+
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
|
239
|
+
/******/ // create error before stack unwound to get useful stacktrace later
|
|
240
|
+
/******/ var error = new Error();
|
|
241
|
+
/******/ var loadingEnded = (event) => {
|
|
242
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
|
243
|
+
/******/ installedChunkData = installedChunks[chunkId];
|
|
244
|
+
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
|
245
|
+
/******/ if(installedChunkData) {
|
|
246
|
+
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
|
247
|
+
/******/ var realSrc = event && event.target && event.target.src;
|
|
248
|
+
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
|
249
|
+
/******/ error.name = 'ChunkLoadError';
|
|
250
|
+
/******/ error.type = errorType;
|
|
251
|
+
/******/ error.request = realSrc;
|
|
252
|
+
/******/ installedChunkData[1](error);
|
|
253
|
+
/******/ }
|
|
254
|
+
/******/ }
|
|
255
|
+
/******/ };
|
|
256
|
+
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
|
|
257
|
+
/******/ }
|
|
258
|
+
/******/ }
|
|
259
|
+
/******/ }
|
|
260
|
+
/******/ };
|
|
261
|
+
/******/
|
|
262
|
+
/******/ // no prefetching
|
|
263
|
+
/******/
|
|
264
|
+
/******/ // no preloaded
|
|
265
|
+
/******/
|
|
266
|
+
/******/ // no HMR
|
|
267
|
+
/******/
|
|
268
|
+
/******/ // no HMR manifest
|
|
269
|
+
/******/
|
|
270
|
+
/******/ // no on chunks loaded
|
|
271
|
+
/******/
|
|
272
|
+
/******/ // install a JSONP callback for chunk loading
|
|
273
|
+
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
|
|
274
|
+
/******/ var [chunkIds, moreModules, runtime] = data;
|
|
275
|
+
/******/ // add "moreModules" to the modules object,
|
|
276
|
+
/******/ // then flag all "chunkIds" as loaded and fire callback
|
|
277
|
+
/******/ var moduleId, chunkId, i = 0;
|
|
278
|
+
/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
|
|
279
|
+
/******/ for(moduleId in moreModules) {
|
|
280
|
+
/******/ if(__webpack_require__.o(moreModules, moduleId)) {
|
|
281
|
+
/******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
|
|
282
|
+
/******/ }
|
|
283
|
+
/******/ }
|
|
284
|
+
/******/ if(runtime) var result = runtime(__webpack_require__);
|
|
285
|
+
/******/ }
|
|
286
|
+
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
|
|
287
|
+
/******/ for(;i < chunkIds.length; i++) {
|
|
288
|
+
/******/ chunkId = chunkIds[i];
|
|
289
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
|
290
|
+
/******/ installedChunks[chunkId][0]();
|
|
291
|
+
/******/ }
|
|
292
|
+
/******/ installedChunks[chunkId] = 0;
|
|
293
|
+
/******/ }
|
|
294
|
+
/******/
|
|
295
|
+
/******/ }
|
|
296
|
+
/******/
|
|
297
|
+
/******/ var chunkLoadingGlobal = self["webpackChunksignalk_ais_navionics_converter"] = self["webpackChunksignalk_ais_navionics_converter"] || [];
|
|
298
|
+
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
|
|
299
|
+
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
|
|
300
|
+
/******/ })();
|
|
301
|
+
/******/
|
|
302
|
+
/************************************************************************/
|
|
303
|
+
/******/
|
|
304
|
+
/******/ // module cache are used so entry inlining is disabled
|
|
305
|
+
/******/ // startup
|
|
306
|
+
/******/ // Load entry module and return exports
|
|
307
|
+
/******/ var __webpack_exports__ = __webpack_require__("./src/index.js");
|
|
308
|
+
/******/
|
|
309
|
+
/******/ })()
|
|
310
|
+
;
|