@aws/cloudformation-languageserver 0.0.0 → 1.15.0

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.
Files changed (70) hide show
  1. package/LICENSE +175 -0
  2. package/NOTICE +10 -0
  3. package/README.md +71 -3
  4. package/THIRD-PARTY-LICENSES.txt +16160 -0
  5. package/assets/featureFlag/alpha.json +57 -0
  6. package/assets/featureFlag/beta.json +56 -0
  7. package/assets/featureFlag/prod.json +56 -0
  8. package/assets/relationship_schemas.json +16282 -0
  9. package/assets/release-manifest.json +701 -0
  10. package/assets/wheels/annotated_types-0.7.0-py3-none-any.whl +0 -0
  11. package/assets/wheels/attrs-26.1.0-py3-none-any.whl +0 -0
  12. package/assets/wheels/aws_sam_translator-1.109.0-py3-none-any.whl +0 -0
  13. package/assets/wheels/boto3-1.43.4-py3-none-any.whl +0 -0
  14. package/assets/wheels/botocore-1.43.4-py3-none-any.whl +0 -0
  15. package/assets/wheels/cfn_lint-1.57.0-py3-none-any.whl +0 -0
  16. package/assets/wheels/jmespath-1.1.0-py3-none-any.whl +0 -0
  17. package/assets/wheels/jsonpatch-1.33-py2.py3-none-any.whl +0 -0
  18. package/assets/wheels/jsonpointer-3.1.1-py3-none-any.whl +0 -0
  19. package/assets/wheels/jsonschema-4.26.0-py3-none-any.whl +0 -0
  20. package/assets/wheels/jsonschema_specifications-2025.9.1-py3-none-any.whl +0 -0
  21. package/assets/wheels/micropip-0.10.1-py3-none-any.whl +0 -0
  22. package/assets/wheels/mpmath-1.4.1-py3-none-any.whl +0 -0
  23. package/assets/wheels/networkx-3.6.1-py3-none-any.whl +0 -0
  24. package/assets/wheels/pydantic-2.10.6-py3-none-any.whl +0 -0
  25. package/assets/wheels/pydantic_core-2.27.2-cp313-cp313-pyodide_2025_0_wasm32.whl +0 -0
  26. package/assets/wheels/python_dateutil-2.9.0.post0-py2.py3-none-any.whl +0 -0
  27. package/assets/wheels/pyyaml-6.0.2-cp313-cp313-pyodide_2025_0_wasm32.whl +0 -0
  28. package/assets/wheels/referencing-0.37.0-py3-none-any.whl +0 -0
  29. package/assets/wheels/regex-2024.11.6-cp313-cp313-pyodide_2025_0_wasm32.whl +0 -0
  30. package/assets/wheels/rpds_py-0.23.1-cp313-cp313-pyodide_2025_0_wasm32.whl +0 -0
  31. package/assets/wheels/s3transfer-0.17.0-py3-none-any.whl +0 -0
  32. package/assets/wheels/six-1.17.0-py2.py3-none-any.whl +0 -0
  33. package/assets/wheels/sympy-1.14.0-py3-none-any.whl +0 -0
  34. package/assets/wheels/typing_extensions-4.15.0-py3-none-any.whl +0 -0
  35. package/assets/wheels/urllib3-2.7.0-py3-none-any.whl +0 -0
  36. package/cfn-lsp-server-standalone.js +44504 -0
  37. package/cfn-lsp-server-standalone.js.map +1 -0
  38. package/cfn-validate-worker.js +83 -0
  39. package/cfn-validate-worker.js.map +1 -0
  40. package/node_modules_aws-sdk_credential-provider-http_dist-es_index_js.js +225 -0
  41. package/node_modules_aws-sdk_credential-provider-http_dist-es_index_js.js.map +1 -0
  42. package/node_modules_aws-sdk_credential-provider-ini_dist-es_index_js.js +280 -0
  43. package/node_modules_aws-sdk_credential-provider-ini_dist-es_index_js.js.map +1 -0
  44. package/node_modules_aws-sdk_credential-provider-login_dist-es_index_js.js +329 -0
  45. package/node_modules_aws-sdk_credential-provider-login_dist-es_index_js.js.map +1 -0
  46. package/node_modules_aws-sdk_credential-provider-process_dist-es_index_js.js +111 -0
  47. package/node_modules_aws-sdk_credential-provider-process_dist-es_index_js.js.map +1 -0
  48. package/node_modules_aws-sdk_credential-provider-sso_dist-es_index_js.js +442 -0
  49. package/node_modules_aws-sdk_credential-provider-sso_dist-es_index_js.js.map +1 -0
  50. package/node_modules_aws-sdk_credential-provider-web-identity_dist-es_index_js.js +90 -0
  51. package/node_modules_aws-sdk_credential-provider-web-identity_dist-es_index_js.js.map +1 -0
  52. package/node_modules_smithy_credential-provider-imds_dist-es_index_js.js +437 -0
  53. package/node_modules_smithy_credential-provider-imds_dist-es_index_js.js.map +1 -0
  54. package/package.json +74 -7
  55. package/pyodide-worker.js +1216 -0
  56. package/pyodide-worker.js.map +1 -0
  57. package/vendors-node_modules_aws-sdk_client-cloudcontrol_dist-es_index_js-node_modules_aws-sdk_client-4d5eee.js +149900 -0
  58. package/vendors-node_modules_aws-sdk_client-cloudcontrol_dist-es_index_js-node_modules_aws-sdk_client-4d5eee.js.map +1 -0
  59. package/vendors-node_modules_aws-sdk_credential-provider-sso_dist-es_loadSso_js.js +583 -0
  60. package/vendors-node_modules_aws-sdk_credential-provider-sso_dist-es_loadSso_js.js.map +1 -0
  61. package/vendors-node_modules_aws-sdk_nested-clients_dist-es_submodules_signin_index_js.js +710 -0
  62. package/vendors-node_modules_aws-sdk_nested-clients_dist-es_submodules_signin_index_js.js.map +1 -0
  63. package/vendors-node_modules_aws-sdk_nested-clients_dist-es_submodules_sso-oidc_index_js.js +782 -0
  64. package/vendors-node_modules_aws-sdk_nested-clients_dist-es_submodules_sso-oidc_index_js.js.map +1 -0
  65. package/vendors-node_modules_aws-sdk_nested-clients_dist-es_submodules_sts_index_js.js +999 -0
  66. package/vendors-node_modules_aws-sdk_nested-clients_dist-es_submodules_sts_index_js.js.map +1 -0
  67. package/vendors-node_modules_base2_pretty-print-object_dist_index_js-node_modules_vscode-jsonrpc_node-9a0a8d.js +8429 -0
  68. package/vendors-node_modules_base2_pretty-print-object_dist_index_js-node_modules_vscode-jsonrpc_node-9a0a8d.js.map +1 -0
  69. package/vendors-node_modules_bowser_bowser_mjs.js +2244 -0
  70. package/vendors-node_modules_bowser_bowser_mjs.js.map +1 -0
@@ -0,0 +1,2244 @@
1
+ "use strict";
2
+ exports.id = "vendors-node_modules_bowser_bowser_mjs";
3
+ exports.ids = ["vendors-node_modules_bowser_bowser_mjs"];
4
+ exports.modules = {
5
+
6
+ /***/ "./node_modules/bowser/bowser.mjs"
7
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
8
+
9
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10
+ /* harmony export */ "default": () => (/* binding */ Bowser),
11
+ /* harmony export */ parse: () => (/* binding */ parse)
12
+ /* harmony export */ });
13
+ /* unused harmony exports BROWSER_MAP, ENGINE_MAP, OS_MAP, PLATFORMS_MAP, getParser */
14
+ /*!
15
+ * Bowser - a browser detector
16
+ * https://github.com/lancedikson/bowser
17
+ * MIT License | (c) Dustin Diaz 2012-2015
18
+ * MIT License | (c) Denis Demchenko 2015-2026
19
+ */
20
+ //#region src/constants.js
21
+ var BROWSER_ALIASES_MAP = {
22
+ AmazonBot: "amazonbot",
23
+ "Amazon Silk": "amazon_silk",
24
+ "Android Browser": "android",
25
+ BaiduSpider: "baiduspider",
26
+ Bada: "bada",
27
+ BingCrawler: "bingcrawler",
28
+ Brave: "brave",
29
+ BlackBerry: "blackberry",
30
+ "ChatGPT-User": "chatgpt_user",
31
+ Chrome: "chrome",
32
+ ClaudeBot: "claudebot",
33
+ Chromium: "chromium",
34
+ Diffbot: "diffbot",
35
+ DuckDuckBot: "duckduckbot",
36
+ DuckDuckGo: "duckduckgo",
37
+ Electron: "electron",
38
+ Epiphany: "epiphany",
39
+ FacebookExternalHit: "facebookexternalhit",
40
+ Firefox: "firefox",
41
+ Focus: "focus",
42
+ Generic: "generic",
43
+ "Google Search": "google_search",
44
+ Googlebot: "googlebot",
45
+ GPTBot: "gptbot",
46
+ "HeyTap Browser": "heytap",
47
+ "Internet Explorer": "ie",
48
+ InternetArchiveCrawler: "internetarchivecrawler",
49
+ "K-Meleon": "k_meleon",
50
+ Ladybird: "ladybird",
51
+ LibreWolf: "librewolf",
52
+ Linespider: "linespider",
53
+ Maxthon: "maxthon",
54
+ "Meta-ExternalAds": "meta_externalads",
55
+ "Meta-ExternalAgent": "meta_externalagent",
56
+ "Meta-ExternalFetcher": "meta_externalfetcher",
57
+ "Meta-WebIndexer": "meta_webindexer",
58
+ "Microsoft Edge": "edge",
59
+ "MZ Browser": "mz",
60
+ "NAVER Whale Browser": "naver",
61
+ "OAI-SearchBot": "oai_searchbot",
62
+ Omgilibot: "omgilibot",
63
+ Opera: "opera",
64
+ "Opera Coast": "opera_coast",
65
+ "Pale Moon": "pale_moon",
66
+ PerplexityBot: "perplexitybot",
67
+ "Perplexity-User": "perplexity_user",
68
+ PhantomJS: "phantomjs",
69
+ PingdomBot: "pingdombot",
70
+ Puffin: "puffin",
71
+ QQ: "qq",
72
+ QQLite: "qqlite",
73
+ QupZilla: "qupzilla",
74
+ Roku: "roku",
75
+ Safari: "safari",
76
+ Sailfish: "sailfish",
77
+ "Samsung Internet for Android": "samsung_internet",
78
+ SlackBot: "slackbot",
79
+ SeaMonkey: "seamonkey",
80
+ Sleipnir: "sleipnir",
81
+ "Sogou Browser": "sogou",
82
+ Swing: "swing",
83
+ Tizen: "tizen",
84
+ "UC Browser": "uc",
85
+ "Vivo Browser": "vivo",
86
+ Vivaldi: "vivaldi",
87
+ "WebOS Browser": "webos",
88
+ WeChat: "wechat",
89
+ YahooSlurp: "yahooslurp",
90
+ "Yandex Browser": "yandex",
91
+ YandexBot: "yandexbot",
92
+ YouBot: "youbot"
93
+ };
94
+ var BROWSER_MAP = {
95
+ amazonbot: "AmazonBot",
96
+ amazon_silk: "Amazon Silk",
97
+ android: "Android Browser",
98
+ baiduspider: "BaiduSpider",
99
+ bada: "Bada",
100
+ bingcrawler: "BingCrawler",
101
+ blackberry: "BlackBerry",
102
+ brave: "Brave",
103
+ chatgpt_user: "ChatGPT-User",
104
+ chrome: "Chrome",
105
+ claudebot: "ClaudeBot",
106
+ chromium: "Chromium",
107
+ diffbot: "Diffbot",
108
+ duckduckbot: "DuckDuckBot",
109
+ duckduckgo: "DuckDuckGo",
110
+ edge: "Microsoft Edge",
111
+ electron: "Electron",
112
+ epiphany: "Epiphany",
113
+ facebookexternalhit: "FacebookExternalHit",
114
+ firefox: "Firefox",
115
+ focus: "Focus",
116
+ generic: "Generic",
117
+ google_search: "Google Search",
118
+ googlebot: "Googlebot",
119
+ gptbot: "GPTBot",
120
+ heytap: "HeyTap Browser",
121
+ ie: "Internet Explorer",
122
+ internetarchivecrawler: "InternetArchiveCrawler",
123
+ k_meleon: "K-Meleon",
124
+ ladybird: "Ladybird",
125
+ librewolf: "LibreWolf",
126
+ linespider: "Linespider",
127
+ maxthon: "Maxthon",
128
+ meta_externalads: "Meta-ExternalAds",
129
+ meta_externalagent: "Meta-ExternalAgent",
130
+ meta_externalfetcher: "Meta-ExternalFetcher",
131
+ meta_webindexer: "Meta-WebIndexer",
132
+ mz: "MZ Browser",
133
+ naver: "NAVER Whale Browser",
134
+ oai_searchbot: "OAI-SearchBot",
135
+ omgilibot: "Omgilibot",
136
+ opera: "Opera",
137
+ opera_coast: "Opera Coast",
138
+ pale_moon: "Pale Moon",
139
+ perplexitybot: "PerplexityBot",
140
+ perplexity_user: "Perplexity-User",
141
+ phantomjs: "PhantomJS",
142
+ pingdombot: "PingdomBot",
143
+ puffin: "Puffin",
144
+ qq: "QQ Browser",
145
+ qqlite: "QQ Browser Lite",
146
+ qupzilla: "QupZilla",
147
+ roku: "Roku",
148
+ safari: "Safari",
149
+ sailfish: "Sailfish",
150
+ samsung_internet: "Samsung Internet for Android",
151
+ seamonkey: "SeaMonkey",
152
+ slackbot: "SlackBot",
153
+ sleipnir: "Sleipnir",
154
+ sogou: "Sogou Browser",
155
+ swing: "Swing",
156
+ tizen: "Tizen",
157
+ uc: "UC Browser",
158
+ vivo: "Vivo Browser",
159
+ vivaldi: "Vivaldi",
160
+ webos: "WebOS Browser",
161
+ wechat: "WeChat",
162
+ yahooslurp: "YahooSlurp",
163
+ yandex: "Yandex Browser",
164
+ yandexbot: "YandexBot",
165
+ youbot: "YouBot"
166
+ };
167
+ var PLATFORMS_MAP = {
168
+ bot: "bot",
169
+ desktop: "desktop",
170
+ mobile: "mobile",
171
+ tablet: "tablet",
172
+ tv: "tv"
173
+ };
174
+ var OS_MAP = {
175
+ Android: "Android",
176
+ Bada: "Bada",
177
+ BlackBerry: "BlackBerry",
178
+ ChromeOS: "Chrome OS",
179
+ HarmonyOS: "HarmonyOS",
180
+ iOS: "iOS",
181
+ Linux: "Linux",
182
+ MacOS: "macOS",
183
+ PlayStation4: "PlayStation 4",
184
+ Roku: "Roku",
185
+ Tizen: "Tizen",
186
+ WebOS: "WebOS",
187
+ Windows: "Windows",
188
+ WindowsPhone: "Windows Phone"
189
+ };
190
+ var ENGINE_MAP = {
191
+ Blink: "Blink",
192
+ EdgeHTML: "EdgeHTML",
193
+ Gecko: "Gecko",
194
+ LibWeb: "LibWeb",
195
+ Presto: "Presto",
196
+ Trident: "Trident",
197
+ WebKit: "WebKit"
198
+ };
199
+
200
+ //#endregion
201
+ //#region src/utils.js
202
+ var Utils = /*#__PURE__*/function () {
203
+ function Utils() {}
204
+ /**
205
+ * Get first matched item for a string
206
+ * @param {RegExp} regexp
207
+ * @param {String} ua
208
+ * @return {Array|{index: number, input: string}|*|boolean|string}
209
+ */
210
+ Utils.getFirstMatch = function getFirstMatch(regexp, ua) {
211
+ var match = ua.match(regexp);
212
+ return match && match.length > 0 && match[1] || "";
213
+ };
214
+ Utils.getSecondMatch = function getSecondMatch(regexp, ua) {
215
+ var match = ua.match(regexp);
216
+ return match && match.length > 1 && match[2] || "";
217
+ };
218
+ Utils.matchAndReturnConst = function matchAndReturnConst(regexp, ua, _const) {
219
+ if (regexp.test(ua)) return _const;
220
+ };
221
+ Utils.isFirefoxOnIpad = function isFirefoxOnIpad(ua) {
222
+ var macIndex = ua.indexOf("Macintosh");
223
+ if (macIndex === -1) return false;
224
+ var fxiosIndex = ua.indexOf(" FxiOS", macIndex + 9);
225
+ return fxiosIndex !== -1 && ua.indexOf("/", fxiosIndex + 6) !== -1;
226
+ };
227
+ Utils.getWindowsVersionName = function getWindowsVersionName(version) {
228
+ switch (version) {
229
+ case "NT":
230
+ return "NT";
231
+ case "XP":
232
+ return "XP";
233
+ case "NT 5.0":
234
+ return "2000";
235
+ case "NT 5.1":
236
+ return "XP";
237
+ case "NT 5.2":
238
+ return "2003";
239
+ case "NT 6.0":
240
+ return "Vista";
241
+ case "NT 6.1":
242
+ return "7";
243
+ case "NT 6.2":
244
+ return "8";
245
+ case "NT 6.3":
246
+ return "8.1";
247
+ case "NT 10.0":
248
+ return "10";
249
+ default:
250
+ return;
251
+ }
252
+ };
253
+ Utils.getMacOSVersionName = function getMacOSVersionName(version) {
254
+ var v = version.split(".").splice(0, 2).map(function (s) {
255
+ return parseInt(s, 10) || 0;
256
+ });
257
+ v.push(0);
258
+ var major = v[0];
259
+ var minor = v[1];
260
+ if (major === 10) switch (minor) {
261
+ case 5:
262
+ return "Leopard";
263
+ case 6:
264
+ return "Snow Leopard";
265
+ case 7:
266
+ return "Lion";
267
+ case 8:
268
+ return "Mountain Lion";
269
+ case 9:
270
+ return "Mavericks";
271
+ case 10:
272
+ return "Yosemite";
273
+ case 11:
274
+ return "El Capitan";
275
+ case 12:
276
+ return "Sierra";
277
+ case 13:
278
+ return "High Sierra";
279
+ case 14:
280
+ return "Mojave";
281
+ case 15:
282
+ return "Catalina";
283
+ default:
284
+ return;
285
+ }
286
+ switch (major) {
287
+ case 11:
288
+ return "Big Sur";
289
+ case 12:
290
+ return "Monterey";
291
+ case 13:
292
+ return "Ventura";
293
+ case 14:
294
+ return "Sonoma";
295
+ case 15:
296
+ return "Sequoia";
297
+ default:
298
+ return;
299
+ }
300
+ };
301
+ Utils.getAndroidVersionName = function getAndroidVersionName(version) {
302
+ var v = version.split(".").splice(0, 2).map(function (s) {
303
+ return parseInt(s, 10) || 0;
304
+ });
305
+ v.push(0);
306
+ if (v[0] === 1 && v[1] < 5) return void 0;
307
+ if (v[0] === 1 && v[1] < 6) return "Cupcake";
308
+ if (v[0] === 1 && v[1] >= 6) return "Donut";
309
+ if (v[0] === 2 && v[1] < 2) return "Eclair";
310
+ if (v[0] === 2 && v[1] === 2) return "Froyo";
311
+ if (v[0] === 2 && v[1] > 2) return "Gingerbread";
312
+ if (v[0] === 3) return "Honeycomb";
313
+ if (v[0] === 4 && v[1] < 1) return "Ice Cream Sandwich";
314
+ if (v[0] === 4 && v[1] < 4) return "Jelly Bean";
315
+ if (v[0] === 4 && v[1] >= 4) return "KitKat";
316
+ if (v[0] === 5) return "Lollipop";
317
+ if (v[0] === 6) return "Marshmallow";
318
+ if (v[0] === 7) return "Nougat";
319
+ if (v[0] === 8) return "Oreo";
320
+ if (v[0] === 9) return "Pie";
321
+ };
322
+ Utils.getVersionPrecision = function getVersionPrecision(version) {
323
+ return version.split(".").length;
324
+ };
325
+ Utils.compareVersions = function compareVersions(versionA, versionB, isLoose) {
326
+ if (isLoose === void 0) isLoose = false;
327
+ var versionAPrecision = Utils.getVersionPrecision(versionA);
328
+ var versionBPrecision = Utils.getVersionPrecision(versionB);
329
+ var precision = Math.max(versionAPrecision, versionBPrecision);
330
+ var lastPrecision = 0;
331
+ var chunks = Utils.map([versionA, versionB], function (version) {
332
+ var delta = precision - Utils.getVersionPrecision(version);
333
+ var _version = version + new Array(delta + 1).join(".0");
334
+ return Utils.map(_version.split("."), function (chunk) {
335
+ return new Array(20 - chunk.length).join("0") + chunk;
336
+ }).reverse();
337
+ });
338
+ if (isLoose) lastPrecision = precision - Math.min(versionAPrecision, versionBPrecision);
339
+ precision -= 1;
340
+ while (precision >= lastPrecision) {
341
+ if (chunks[0][precision] > chunks[1][precision]) return 1;
342
+ if (chunks[0][precision] === chunks[1][precision]) {
343
+ if (precision === lastPrecision) return 0;
344
+ precision -= 1;
345
+ } else if (chunks[0][precision] < chunks[1][precision]) return -1;
346
+ }
347
+ };
348
+ Utils.map = function map(arr, iterator) {
349
+ var result = [];
350
+ var i;
351
+ if (Array.prototype.map) return Array.prototype.map.call(arr, iterator);
352
+ for (i = 0; i < arr.length; i += 1) result.push(iterator(arr[i]));
353
+ return result;
354
+ };
355
+ Utils.find = function find(arr, predicate) {
356
+ var i;
357
+ var l;
358
+ if (Array.prototype.find) return Array.prototype.find.call(arr, predicate);
359
+ for (i = 0, l = arr.length; i < l; i += 1) {
360
+ var value = arr[i];
361
+ if (predicate(value, i)) return value;
362
+ }
363
+ };
364
+ Utils.assign = function assign(obj) {
365
+ var result = obj;
366
+ var i;
367
+ var l;
368
+ for (var _len = arguments.length, assigners = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) assigners[_key - 1] = arguments[_key];
369
+ if (Object.assign) return Object.assign.apply(Object, [obj].concat(assigners));
370
+ var _loop = function _loop() {
371
+ var assigner = assigners[i];
372
+ if (typeof assigner === "object" && assigner !== null) Object.keys(assigner).forEach(function (key) {
373
+ result[key] = assigner[key];
374
+ });
375
+ };
376
+ for (i = 0, l = assigners.length; i < l; i += 1) _loop();
377
+ return obj;
378
+ };
379
+ Utils.getBrowserAlias = function getBrowserAlias(browserName) {
380
+ return BROWSER_ALIASES_MAP[browserName];
381
+ };
382
+ Utils.getBrowserTypeByAlias = function getBrowserTypeByAlias(browserAlias) {
383
+ return BROWSER_MAP[browserAlias] || "";
384
+ };
385
+ return Utils;
386
+ }();
387
+
388
+ //#endregion
389
+ //#region src/parser-browsers.js
390
+ /**
391
+ * Browsers' descriptors
392
+ *
393
+ * The idea of descriptors is simple. You should know about them two simple things:
394
+ * 1. Every descriptor has a method or property called `test` and a `describe` method.
395
+ * 2. Order of descriptors is important.
396
+ *
397
+ * More details:
398
+ * 1. Method or property `test` serves as a way to detect whether the UA string
399
+ * matches some certain browser or not. The `describe` method helps to make a result
400
+ * object with params that show some browser-specific things: name, version, etc.
401
+ * 2. Order of descriptors is important because a Parser goes through them one by one
402
+ * in course. For example, if you insert Chrome's descriptor as the first one,
403
+ * more then a half of browsers will be described as Chrome, because they will pass
404
+ * the Chrome descriptor's test.
405
+ *
406
+ * Descriptor's `test` could be a property with an array of RegExps, where every RegExp
407
+ * will be applied to a UA string to test it whether it matches or not.
408
+ * If a descriptor has two or more regexps in the `test` array it tests them one by one
409
+ * with a logical sum operation. Parser stops if it has found any RegExp that matches the UA.
410
+ *
411
+ * Or `test` could be a method. In that case it gets a Parser instance and should
412
+ * return true/false to get the Parser know if this browser descriptor matches the UA or not.
413
+ */
414
+ var commonVersionIdentifier = /version\/(\d+(\.?_?\d+)+)/i;
415
+ var browsersList = [{
416
+ test: [/gptbot/i],
417
+ describe: function describe(ua) {
418
+ var browser = {
419
+ name: "GPTBot"
420
+ };
421
+ var version = Utils.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
422
+ if (version) browser.version = version;
423
+ return browser;
424
+ }
425
+ }, {
426
+ test: [/chatgpt-user/i],
427
+ describe: function describe(ua) {
428
+ var browser = {
429
+ name: "ChatGPT-User"
430
+ };
431
+ var version = Utils.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
432
+ if (version) browser.version = version;
433
+ return browser;
434
+ }
435
+ }, {
436
+ test: [/oai-searchbot/i],
437
+ describe: function describe(ua) {
438
+ var browser = {
439
+ name: "OAI-SearchBot"
440
+ };
441
+ var version = Utils.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
442
+ if (version) browser.version = version;
443
+ return browser;
444
+ }
445
+ }, {
446
+ test: [/claudebot/i, /claude-web/i, /claude-user/i, /claude-searchbot/i],
447
+ describe: function describe(ua) {
448
+ var browser = {
449
+ name: "ClaudeBot"
450
+ };
451
+ var version = Utils.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
452
+ if (version) browser.version = version;
453
+ return browser;
454
+ }
455
+ }, {
456
+ test: [/omgilibot/i, /webzio-extended/i],
457
+ describe: function describe(ua) {
458
+ var browser = {
459
+ name: "Omgilibot"
460
+ };
461
+ var version = Utils.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
462
+ if (version) browser.version = version;
463
+ return browser;
464
+ }
465
+ }, {
466
+ test: [/diffbot/i],
467
+ describe: function describe(ua) {
468
+ var browser = {
469
+ name: "Diffbot"
470
+ };
471
+ var version = Utils.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
472
+ if (version) browser.version = version;
473
+ return browser;
474
+ }
475
+ }, {
476
+ test: [/perplexitybot/i],
477
+ describe: function describe(ua) {
478
+ var browser = {
479
+ name: "PerplexityBot"
480
+ };
481
+ var version = Utils.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
482
+ if (version) browser.version = version;
483
+ return browser;
484
+ }
485
+ }, {
486
+ test: [/perplexity-user/i],
487
+ describe: function describe(ua) {
488
+ var browser = {
489
+ name: "Perplexity-User"
490
+ };
491
+ var version = Utils.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
492
+ if (version) browser.version = version;
493
+ return browser;
494
+ }
495
+ }, {
496
+ test: [/youbot/i],
497
+ describe: function describe(ua) {
498
+ var browser = {
499
+ name: "YouBot"
500
+ };
501
+ var version = Utils.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
502
+ if (version) browser.version = version;
503
+ return browser;
504
+ }
505
+ }, {
506
+ test: [/meta-webindexer/i],
507
+ describe: function describe(ua) {
508
+ var browser = {
509
+ name: "Meta-WebIndexer"
510
+ };
511
+ var version = Utils.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
512
+ if (version) browser.version = version;
513
+ return browser;
514
+ }
515
+ }, {
516
+ test: [/meta-externalads/i],
517
+ describe: function describe(ua) {
518
+ var browser = {
519
+ name: "Meta-ExternalAds"
520
+ };
521
+ var version = Utils.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
522
+ if (version) browser.version = version;
523
+ return browser;
524
+ }
525
+ }, {
526
+ test: [/meta-externalagent/i],
527
+ describe: function describe(ua) {
528
+ var browser = {
529
+ name: "Meta-ExternalAgent"
530
+ };
531
+ var version = Utils.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
532
+ if (version) browser.version = version;
533
+ return browser;
534
+ }
535
+ }, {
536
+ test: [/meta-externalfetcher/i],
537
+ describe: function describe(ua) {
538
+ var browser = {
539
+ name: "Meta-ExternalFetcher"
540
+ };
541
+ var version = Utils.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
542
+ if (version) browser.version = version;
543
+ return browser;
544
+ }
545
+ }, {
546
+ test: [/googlebot/i],
547
+ describe: function describe(ua) {
548
+ var browser = {
549
+ name: "Googlebot"
550
+ };
551
+ var version = Utils.getFirstMatch(/googlebot\/(\d+(\.\d+))/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
552
+ if (version) browser.version = version;
553
+ return browser;
554
+ }
555
+ }, {
556
+ test: [/linespider/i],
557
+ describe: function describe(ua) {
558
+ var browser = {
559
+ name: "Linespider"
560
+ };
561
+ var version = Utils.getFirstMatch(/(?:linespider)(?:-[-\w]{1,64})?[\s/](\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
562
+ if (version) browser.version = version;
563
+ return browser;
564
+ }
565
+ }, {
566
+ test: [/amazonbot/i],
567
+ describe: function describe(ua) {
568
+ var browser = {
569
+ name: "AmazonBot"
570
+ };
571
+ var version = Utils.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
572
+ if (version) browser.version = version;
573
+ return browser;
574
+ }
575
+ }, {
576
+ test: [/bingbot/i],
577
+ describe: function describe(ua) {
578
+ var browser = {
579
+ name: "BingCrawler"
580
+ };
581
+ var version = Utils.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
582
+ if (version) browser.version = version;
583
+ return browser;
584
+ }
585
+ }, {
586
+ test: [/baiduspider/i],
587
+ describe: function describe(ua) {
588
+ var browser = {
589
+ name: "BaiduSpider"
590
+ };
591
+ var version = Utils.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
592
+ if (version) browser.version = version;
593
+ return browser;
594
+ }
595
+ }, {
596
+ test: [/duckduckbot/i],
597
+ describe: function describe(ua) {
598
+ var browser = {
599
+ name: "DuckDuckBot"
600
+ };
601
+ var version = Utils.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
602
+ if (version) browser.version = version;
603
+ return browser;
604
+ }
605
+ }, {
606
+ test: [/ia_archiver/i],
607
+ describe: function describe(ua) {
608
+ var browser = {
609
+ name: "InternetArchiveCrawler"
610
+ };
611
+ var version = Utils.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
612
+ if (version) browser.version = version;
613
+ return browser;
614
+ }
615
+ }, {
616
+ test: [/facebookexternalhit/i, /facebookcatalog/i],
617
+ describe: function describe() {
618
+ return {
619
+ name: "FacebookExternalHit"
620
+ };
621
+ }
622
+ }, {
623
+ test: [/slackbot/i, /slack-imgProxy/i],
624
+ describe: function describe(ua) {
625
+ var browser = {
626
+ name: "SlackBot"
627
+ };
628
+ var version = Utils.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]{1,64})?[\s/](\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
629
+ if (version) browser.version = version;
630
+ return browser;
631
+ }
632
+ }, {
633
+ test: [/yahoo!?[\s/]*slurp/i],
634
+ describe: function describe() {
635
+ return {
636
+ name: "YahooSlurp"
637
+ };
638
+ }
639
+ }, {
640
+ test: [/yandexbot/i, /yandexmobilebot/i],
641
+ describe: function describe() {
642
+ return {
643
+ name: "YandexBot"
644
+ };
645
+ }
646
+ }, {
647
+ test: [/pingdom/i],
648
+ describe: function describe() {
649
+ return {
650
+ name: "PingdomBot"
651
+ };
652
+ }
653
+ }, {
654
+ test: [/opera/i],
655
+ describe: function describe(ua) {
656
+ var browser = {
657
+ name: "Opera"
658
+ };
659
+ var version = Utils.getFirstMatch(commonVersionIdentifier, ua) || Utils.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i, ua);
660
+ if (version) browser.version = version;
661
+ return browser;
662
+ }
663
+ }, {
664
+ test: [/opr\/|opios/i],
665
+ describe: function describe(ua) {
666
+ var browser = {
667
+ name: "Opera"
668
+ };
669
+ var version = Utils.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
670
+ if (version) browser.version = version;
671
+ return browser;
672
+ }
673
+ }, {
674
+ test: [/SamsungBrowser/i],
675
+ describe: function describe(ua) {
676
+ var browser = {
677
+ name: "Samsung Internet for Android"
678
+ };
679
+ var version = Utils.getFirstMatch(commonVersionIdentifier, ua) || Utils.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i, ua);
680
+ if (version) browser.version = version;
681
+ return browser;
682
+ }
683
+ }, {
684
+ test: [/Whale/i],
685
+ describe: function describe(ua) {
686
+ var browser = {
687
+ name: "NAVER Whale Browser"
688
+ };
689
+ var version = Utils.getFirstMatch(commonVersionIdentifier, ua) || Utils.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i, ua);
690
+ if (version) browser.version = version;
691
+ return browser;
692
+ }
693
+ }, {
694
+ test: [/PaleMoon/i],
695
+ describe: function describe(ua) {
696
+ var browser = {
697
+ name: "Pale Moon"
698
+ };
699
+ var version = Utils.getFirstMatch(commonVersionIdentifier, ua) || Utils.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i, ua);
700
+ if (version) browser.version = version;
701
+ return browser;
702
+ }
703
+ }, {
704
+ test: [/HeyTapBrowser/i],
705
+ describe: function describe(ua) {
706
+ var browser = {
707
+ name: "HeyTap Browser"
708
+ };
709
+ var version = Utils.getFirstMatch(/(?:HeyTapBrowser)[\s/](\d+(?:\.\d+)*)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
710
+ if (version) browser.version = version;
711
+ return browser;
712
+ }
713
+ }, {
714
+ test: [/VivoBrowser/i],
715
+ describe: function describe(ua) {
716
+ var browser = {
717
+ name: "Vivo Browser"
718
+ };
719
+ var version = Utils.getFirstMatch(/(?:VivoBrowser)[\s/](\d+(?:\.\d+)*)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
720
+ if (version) browser.version = version;
721
+ return browser;
722
+ }
723
+ }, {
724
+ test: [/MZBrowser/i],
725
+ describe: function describe(ua) {
726
+ var browser = {
727
+ name: "MZ Browser"
728
+ };
729
+ var version = Utils.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
730
+ if (version) browser.version = version;
731
+ return browser;
732
+ }
733
+ }, {
734
+ test: [/focus/i],
735
+ describe: function describe(ua) {
736
+ var browser = {
737
+ name: "Focus"
738
+ };
739
+ var version = Utils.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
740
+ if (version) browser.version = version;
741
+ return browser;
742
+ }
743
+ }, {
744
+ test: [/swing/i],
745
+ describe: function describe(ua) {
746
+ var browser = {
747
+ name: "Swing"
748
+ };
749
+ var version = Utils.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
750
+ if (version) browser.version = version;
751
+ return browser;
752
+ }
753
+ }, {
754
+ test: [/coast/i],
755
+ describe: function describe(ua) {
756
+ var browser = {
757
+ name: "Opera Coast"
758
+ };
759
+ var version = Utils.getFirstMatch(commonVersionIdentifier, ua) || Utils.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i, ua);
760
+ if (version) browser.version = version;
761
+ return browser;
762
+ }
763
+ }, {
764
+ test: [/opt\/\d+(?:.?_?\d+)+/i],
765
+ describe: function describe(ua) {
766
+ var browser = {
767
+ name: "Opera Touch"
768
+ };
769
+ var version = Utils.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
770
+ if (version) browser.version = version;
771
+ return browser;
772
+ }
773
+ }, {
774
+ test: [/yabrowser/i],
775
+ describe: function describe(ua) {
776
+ var browser = {
777
+ name: "Yandex Browser"
778
+ };
779
+ var version = Utils.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
780
+ if (version) browser.version = version;
781
+ return browser;
782
+ }
783
+ }, {
784
+ test: [/ucbrowser/i],
785
+ describe: function describe(ua) {
786
+ var browser = {
787
+ name: "UC Browser"
788
+ };
789
+ var version = Utils.getFirstMatch(commonVersionIdentifier, ua) || Utils.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i, ua);
790
+ if (version) browser.version = version;
791
+ return browser;
792
+ }
793
+ }, {
794
+ test: [/Maxthon|mxios/i],
795
+ describe: function describe(ua) {
796
+ var browser = {
797
+ name: "Maxthon"
798
+ };
799
+ var version = Utils.getFirstMatch(commonVersionIdentifier, ua) || Utils.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i, ua);
800
+ if (version) browser.version = version;
801
+ return browser;
802
+ }
803
+ }, {
804
+ test: [/epiphany/i],
805
+ describe: function describe(ua) {
806
+ var browser = {
807
+ name: "Epiphany"
808
+ };
809
+ var version = Utils.getFirstMatch(commonVersionIdentifier, ua) || Utils.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i, ua);
810
+ if (version) browser.version = version;
811
+ return browser;
812
+ }
813
+ }, {
814
+ test: [/puffin/i],
815
+ describe: function describe(ua) {
816
+ var browser = {
817
+ name: "Puffin"
818
+ };
819
+ var version = Utils.getFirstMatch(commonVersionIdentifier, ua) || Utils.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i, ua);
820
+ if (version) browser.version = version;
821
+ return browser;
822
+ }
823
+ }, {
824
+ test: [/sleipnir/i],
825
+ describe: function describe(ua) {
826
+ var browser = {
827
+ name: "Sleipnir"
828
+ };
829
+ var version = Utils.getFirstMatch(commonVersionIdentifier, ua) || Utils.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i, ua);
830
+ if (version) browser.version = version;
831
+ return browser;
832
+ }
833
+ }, {
834
+ test: [/k-meleon/i],
835
+ describe: function describe(ua) {
836
+ var browser = {
837
+ name: "K-Meleon"
838
+ };
839
+ var version = Utils.getFirstMatch(commonVersionIdentifier, ua) || Utils.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i, ua);
840
+ if (version) browser.version = version;
841
+ return browser;
842
+ }
843
+ }, {
844
+ test: [/micromessenger/i],
845
+ describe: function describe(ua) {
846
+ var browser = {
847
+ name: "WeChat"
848
+ };
849
+ var version = Utils.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
850
+ if (version) browser.version = version;
851
+ return browser;
852
+ }
853
+ }, {
854
+ test: [/qqbrowser/i],
855
+ describe: function describe(ua) {
856
+ var browser = {
857
+ name: /qqbrowserlite/i.test(ua) ? "QQ Browser Lite" : "QQ Browser"
858
+ };
859
+ var version = Utils.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
860
+ if (version) browser.version = version;
861
+ return browser;
862
+ }
863
+ }, {
864
+ test: [/msie|trident/i],
865
+ describe: function describe(ua) {
866
+ var browser = {
867
+ name: "Internet Explorer"
868
+ };
869
+ var version = Utils.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i, ua);
870
+ if (version) browser.version = version;
871
+ return browser;
872
+ }
873
+ }, {
874
+ test: [/\sedg\//i],
875
+ describe: function describe(ua) {
876
+ var browser = {
877
+ name: "Microsoft Edge"
878
+ };
879
+ var version = Utils.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i, ua);
880
+ if (version) browser.version = version;
881
+ return browser;
882
+ }
883
+ }, {
884
+ test: [/edg([ea]|ios)\//i],
885
+ describe: function describe(ua) {
886
+ var browser = {
887
+ name: "Microsoft Edge"
888
+ };
889
+ var version = Utils.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i, ua);
890
+ if (version) browser.version = version;
891
+ return browser;
892
+ }
893
+ }, {
894
+ test: function test(parser) {
895
+ if (parser.hasBrand("Vivaldi")) return true;
896
+ return parser.test(/vivaldi/i);
897
+ },
898
+ describe: function describe(ua, parser) {
899
+ var browser = {
900
+ name: "Vivaldi"
901
+ };
902
+ if (parser) {
903
+ var hintsVersion = parser.getBrandVersion("Vivaldi");
904
+ if (hintsVersion) {
905
+ browser.version = hintsVersion;
906
+ return browser;
907
+ }
908
+ }
909
+ var version = Utils.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i, ua);
910
+ if (version) browser.version = version;
911
+ return browser;
912
+ }
913
+ }, {
914
+ test: [/seamonkey/i],
915
+ describe: function describe(ua) {
916
+ var browser = {
917
+ name: "SeaMonkey"
918
+ };
919
+ var version = Utils.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i, ua);
920
+ if (version) browser.version = version;
921
+ return browser;
922
+ }
923
+ }, {
924
+ test: [/sailfish/i],
925
+ describe: function describe(ua) {
926
+ var browser = {
927
+ name: "Sailfish"
928
+ };
929
+ var version = Utils.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i, ua);
930
+ if (version) browser.version = version;
931
+ return browser;
932
+ }
933
+ }, {
934
+ test: [/silk/i],
935
+ describe: function describe(ua) {
936
+ var browser = {
937
+ name: "Amazon Silk"
938
+ };
939
+ var version = Utils.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i, ua);
940
+ if (version) browser.version = version;
941
+ return browser;
942
+ }
943
+ }, {
944
+ test: [/phantom/i],
945
+ describe: function describe(ua) {
946
+ var browser = {
947
+ name: "PhantomJS"
948
+ };
949
+ var version = Utils.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i, ua);
950
+ if (version) browser.version = version;
951
+ return browser;
952
+ }
953
+ }, {
954
+ test: [/slimerjs/i],
955
+ describe: function describe(ua) {
956
+ var browser = {
957
+ name: "SlimerJS"
958
+ };
959
+ var version = Utils.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i, ua);
960
+ if (version) browser.version = version;
961
+ return browser;
962
+ }
963
+ }, {
964
+ test: [/blackberry|\bbb\d+/i, /rim\stablet/i],
965
+ describe: function describe(ua) {
966
+ var browser = {
967
+ name: "BlackBerry"
968
+ };
969
+ var version = Utils.getFirstMatch(commonVersionIdentifier, ua) || Utils.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i, ua);
970
+ if (version) browser.version = version;
971
+ return browser;
972
+ }
973
+ }, {
974
+ test: [/(web|hpw)[o0]s/i],
975
+ describe: function describe(ua) {
976
+ var browser = {
977
+ name: "WebOS Browser"
978
+ };
979
+ var version = Utils.getFirstMatch(commonVersionIdentifier, ua) || Utils.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i, ua);
980
+ if (version) browser.version = version;
981
+ return browser;
982
+ }
983
+ }, {
984
+ test: [/bada/i],
985
+ describe: function describe(ua) {
986
+ var browser = {
987
+ name: "Bada"
988
+ };
989
+ var version = Utils.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i, ua);
990
+ if (version) browser.version = version;
991
+ return browser;
992
+ }
993
+ }, {
994
+ test: [/tizen/i],
995
+ describe: function describe(ua) {
996
+ var browser = {
997
+ name: "Tizen"
998
+ };
999
+ var version = Utils.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
1000
+ if (version) browser.version = version;
1001
+ return browser;
1002
+ }
1003
+ }, {
1004
+ test: [/qupzilla/i],
1005
+ describe: function describe(ua) {
1006
+ var browser = {
1007
+ name: "QupZilla"
1008
+ };
1009
+ var version = Utils.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
1010
+ if (version) browser.version = version;
1011
+ return browser;
1012
+ }
1013
+ }, {
1014
+ test: [/librewolf/i],
1015
+ describe: function describe(ua) {
1016
+ var browser = {
1017
+ name: "LibreWolf"
1018
+ };
1019
+ var version = Utils.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i, ua);
1020
+ if (version) browser.version = version;
1021
+ return browser;
1022
+ }
1023
+ }, {
1024
+ test: [/firefox|iceweasel|fxios/i],
1025
+ describe: function describe(ua) {
1026
+ var browser = {
1027
+ name: "Firefox"
1028
+ };
1029
+ var version = Utils.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i, ua);
1030
+ if (version) browser.version = version;
1031
+ return browser;
1032
+ }
1033
+ }, {
1034
+ test: [/electron/i],
1035
+ describe: function describe(ua) {
1036
+ var browser = {
1037
+ name: "Electron"
1038
+ };
1039
+ var version = Utils.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i, ua);
1040
+ if (version) browser.version = version;
1041
+ return browser;
1042
+ }
1043
+ }, {
1044
+ test: [/sogoumobilebrowser/i, /metasr/i, /se 2\.[x]/i],
1045
+ describe: function describe(ua) {
1046
+ var browser = {
1047
+ name: "Sogou Browser"
1048
+ };
1049
+ var sogouMobileVersion = Utils.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i, ua);
1050
+ var chromiumVersion = Utils.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i, ua);
1051
+ var seVersion = Utils.getFirstMatch(/se ([\d.]+)x/i, ua);
1052
+ var version = sogouMobileVersion || chromiumVersion || seVersion;
1053
+ if (version) browser.version = version;
1054
+ return browser;
1055
+ }
1056
+ }, {
1057
+ test: [/MiuiBrowser/i],
1058
+ describe: function describe(ua) {
1059
+ var browser = {
1060
+ name: "Miui"
1061
+ };
1062
+ var version = Utils.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i, ua);
1063
+ if (version) browser.version = version;
1064
+ return browser;
1065
+ }
1066
+ }, {
1067
+ test: function test(parser) {
1068
+ if (parser.hasBrand("DuckDuckGo")) return true;
1069
+ return parser.test(/\sDdg\/[\d.]+$/i);
1070
+ },
1071
+ describe: function describe(ua, parser) {
1072
+ var browser = {
1073
+ name: "DuckDuckGo"
1074
+ };
1075
+ if (parser) {
1076
+ var hintsVersion = parser.getBrandVersion("DuckDuckGo");
1077
+ if (hintsVersion) {
1078
+ browser.version = hintsVersion;
1079
+ return browser;
1080
+ }
1081
+ }
1082
+ var uaVersion = Utils.getFirstMatch(/\sDdg\/([\d.]+)$/i, ua);
1083
+ if (uaVersion) browser.version = uaVersion;
1084
+ return browser;
1085
+ }
1086
+ }, {
1087
+ test: function test(parser) {
1088
+ return parser.hasBrand("Brave");
1089
+ },
1090
+ describe: function describe(ua, parser) {
1091
+ var browser = {
1092
+ name: "Brave"
1093
+ };
1094
+ if (parser) {
1095
+ var hintsVersion = parser.getBrandVersion("Brave");
1096
+ if (hintsVersion) {
1097
+ browser.version = hintsVersion;
1098
+ return browser;
1099
+ }
1100
+ }
1101
+ return browser;
1102
+ }
1103
+ }, {
1104
+ test: [/chromium/i],
1105
+ describe: function describe(ua) {
1106
+ var browser = {
1107
+ name: "Chromium"
1108
+ };
1109
+ var version = Utils.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
1110
+ if (version) browser.version = version;
1111
+ return browser;
1112
+ }
1113
+ }, {
1114
+ test: [/ladybird/i],
1115
+ describe: function describe(ua) {
1116
+ var browser = {
1117
+ name: "Ladybird"
1118
+ };
1119
+ var version = Utils.getFirstMatch(/ladybird\/(\d+(\.?_?\d+)+)/i, ua);
1120
+ if (version) browser.version = version;
1121
+ return browser;
1122
+ }
1123
+ }, {
1124
+ test: [/chrome|crios|crmo/i],
1125
+ describe: function describe(ua) {
1126
+ var browser = {
1127
+ name: "Chrome"
1128
+ };
1129
+ var version = Utils.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i, ua);
1130
+ if (version) browser.version = version;
1131
+ return browser;
1132
+ }
1133
+ }, {
1134
+ test: [/GSA/i],
1135
+ describe: function describe(ua) {
1136
+ var browser = {
1137
+ name: "Google Search"
1138
+ };
1139
+ var version = Utils.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i, ua);
1140
+ if (version) browser.version = version;
1141
+ return browser;
1142
+ }
1143
+ }, {
1144
+ test: function test(parser) {
1145
+ var notLikeAndroid = !parser.test(/like android/i);
1146
+ var butAndroid = parser.test(/android/i);
1147
+ return notLikeAndroid && butAndroid;
1148
+ },
1149
+ describe: function describe(ua) {
1150
+ var browser = {
1151
+ name: "Android Browser"
1152
+ };
1153
+ var version = Utils.getFirstMatch(commonVersionIdentifier, ua);
1154
+ if (version) browser.version = version;
1155
+ return browser;
1156
+ }
1157
+ }, {
1158
+ test: [/playstation 4/i],
1159
+ describe: function describe(ua) {
1160
+ var browser = {
1161
+ name: "PlayStation 4"
1162
+ };
1163
+ var version = Utils.getFirstMatch(commonVersionIdentifier, ua);
1164
+ if (version) browser.version = version;
1165
+ return browser;
1166
+ }
1167
+ }, {
1168
+ test: [/safari|applewebkit/i],
1169
+ describe: function describe(ua) {
1170
+ var browser = {
1171
+ name: "Safari"
1172
+ };
1173
+ var version = Utils.getFirstMatch(commonVersionIdentifier, ua);
1174
+ if (version) browser.version = version;
1175
+ return browser;
1176
+ }
1177
+ }, {
1178
+ test: [/.*/i],
1179
+ describe: function describe(ua) {
1180
+ var regexp = ua.search("\\(") !== -1 ? /^(.*)\/([^/]*)[ \t]\((.*)/ : /^(.*)\/([^/]*) /;
1181
+ return {
1182
+ name: Utils.getFirstMatch(regexp, ua),
1183
+ version: Utils.getSecondMatch(regexp, ua)
1184
+ };
1185
+ }
1186
+ }];
1187
+
1188
+ //#endregion
1189
+ //#region src/parser-os.js
1190
+ var parser_os_default = [{
1191
+ test: [/Roku\/DVP/],
1192
+ describe: function describe(ua) {
1193
+ var version = Utils.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i, ua);
1194
+ return {
1195
+ name: OS_MAP.Roku,
1196
+ version: version
1197
+ };
1198
+ }
1199
+ }, {
1200
+ test: [/windows phone/i],
1201
+ describe: function describe(ua) {
1202
+ var version = Utils.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i, ua);
1203
+ return {
1204
+ name: OS_MAP.WindowsPhone,
1205
+ version: version
1206
+ };
1207
+ }
1208
+ }, {
1209
+ test: [/windows /i],
1210
+ describe: function describe(ua) {
1211
+ var version = Utils.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i, ua);
1212
+ var versionName = Utils.getWindowsVersionName(version);
1213
+ return {
1214
+ name: OS_MAP.Windows,
1215
+ version: version,
1216
+ versionName: versionName
1217
+ };
1218
+ }
1219
+ }, {
1220
+ test: function test(parser) {
1221
+ return Utils.isFirefoxOnIpad(parser.getUA());
1222
+ },
1223
+ describe: function describe(ua) {
1224
+ var result = {
1225
+ name: OS_MAP.iOS
1226
+ };
1227
+ var version = Utils.getSecondMatch(/(Version\/)(\d[\d.]+)/, ua);
1228
+ if (version) result.version = version;
1229
+ return result;
1230
+ }
1231
+ }, {
1232
+ test: [/macintosh/i],
1233
+ describe: function describe(ua) {
1234
+ var version = Utils.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i, ua).replace(/[_\s]/g, ".");
1235
+ var versionName = Utils.getMacOSVersionName(version);
1236
+ var os = {
1237
+ name: OS_MAP.MacOS,
1238
+ version: version
1239
+ };
1240
+ if (versionName) os.versionName = versionName;
1241
+ return os;
1242
+ }
1243
+ }, {
1244
+ test: [/(ipod|iphone|ipad)/i],
1245
+ describe: function describe(ua) {
1246
+ var version = Utils.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i, ua).replace(/[_\s]/g, ".");
1247
+ return {
1248
+ name: OS_MAP.iOS,
1249
+ version: version
1250
+ };
1251
+ }
1252
+ }, {
1253
+ test: [/OpenHarmony/i],
1254
+ describe: function describe(ua) {
1255
+ var version = Utils.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i, ua);
1256
+ return {
1257
+ name: OS_MAP.HarmonyOS,
1258
+ version: version
1259
+ };
1260
+ }
1261
+ }, {
1262
+ test: function test(parser) {
1263
+ var notLikeAndroid = !parser.test(/like android/i);
1264
+ var butAndroid = parser.test(/android/i);
1265
+ return notLikeAndroid && butAndroid;
1266
+ },
1267
+ describe: function describe(ua) {
1268
+ var version = Utils.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i, ua);
1269
+ var versionName = Utils.getAndroidVersionName(version);
1270
+ var os = {
1271
+ name: OS_MAP.Android,
1272
+ version: version
1273
+ };
1274
+ if (versionName) os.versionName = versionName;
1275
+ return os;
1276
+ }
1277
+ }, {
1278
+ test: [/(web|hpw)[o0]s/i],
1279
+ describe: function describe(ua) {
1280
+ var version = Utils.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i, ua);
1281
+ var os = {
1282
+ name: OS_MAP.WebOS
1283
+ };
1284
+ if (version && version.length) os.version = version;
1285
+ return os;
1286
+ }
1287
+ }, {
1288
+ test: [/blackberry|\bbb\d+/i, /rim\stablet/i],
1289
+ describe: function describe(ua) {
1290
+ var version = Utils.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i, ua) || Utils.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i, ua) || Utils.getFirstMatch(/\bbb(\d+)/i, ua);
1291
+ return {
1292
+ name: OS_MAP.BlackBerry,
1293
+ version: version
1294
+ };
1295
+ }
1296
+ }, {
1297
+ test: [/bada/i],
1298
+ describe: function describe(ua) {
1299
+ var version = Utils.getFirstMatch(/bada\/(\d+(\.\d+)*)/i, ua);
1300
+ return {
1301
+ name: OS_MAP.Bada,
1302
+ version: version
1303
+ };
1304
+ }
1305
+ }, {
1306
+ test: [/tizen/i],
1307
+ describe: function describe(ua) {
1308
+ var version = Utils.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i, ua);
1309
+ return {
1310
+ name: OS_MAP.Tizen,
1311
+ version: version
1312
+ };
1313
+ }
1314
+ }, {
1315
+ test: [/linux/i],
1316
+ describe: function describe() {
1317
+ return {
1318
+ name: OS_MAP.Linux
1319
+ };
1320
+ }
1321
+ }, {
1322
+ test: [/CrOS/],
1323
+ describe: function describe() {
1324
+ return {
1325
+ name: OS_MAP.ChromeOS
1326
+ };
1327
+ }
1328
+ }, {
1329
+ test: [/PlayStation 4/],
1330
+ describe: function describe(ua) {
1331
+ var version = Utils.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i, ua);
1332
+ return {
1333
+ name: OS_MAP.PlayStation4,
1334
+ version: version
1335
+ };
1336
+ }
1337
+ }];
1338
+
1339
+ //#endregion
1340
+ //#region src/parser-platforms.js
1341
+ var parser_platforms_default = [{
1342
+ test: [/googlebot/i],
1343
+ describe: function describe() {
1344
+ return {
1345
+ type: PLATFORMS_MAP.bot,
1346
+ vendor: "Google"
1347
+ };
1348
+ }
1349
+ }, {
1350
+ test: [/linespider/i],
1351
+ describe: function describe() {
1352
+ return {
1353
+ type: PLATFORMS_MAP.bot,
1354
+ vendor: "Line"
1355
+ };
1356
+ }
1357
+ }, {
1358
+ test: [/amazonbot/i],
1359
+ describe: function describe() {
1360
+ return {
1361
+ type: PLATFORMS_MAP.bot,
1362
+ vendor: "Amazon"
1363
+ };
1364
+ }
1365
+ }, {
1366
+ test: [/gptbot/i],
1367
+ describe: function describe() {
1368
+ return {
1369
+ type: PLATFORMS_MAP.bot,
1370
+ vendor: "OpenAI"
1371
+ };
1372
+ }
1373
+ }, {
1374
+ test: [/chatgpt-user/i],
1375
+ describe: function describe() {
1376
+ return {
1377
+ type: PLATFORMS_MAP.bot,
1378
+ vendor: "OpenAI"
1379
+ };
1380
+ }
1381
+ }, {
1382
+ test: [/oai-searchbot/i],
1383
+ describe: function describe() {
1384
+ return {
1385
+ type: PLATFORMS_MAP.bot,
1386
+ vendor: "OpenAI"
1387
+ };
1388
+ }
1389
+ }, {
1390
+ test: [/baiduspider/i],
1391
+ describe: function describe() {
1392
+ return {
1393
+ type: PLATFORMS_MAP.bot,
1394
+ vendor: "Baidu"
1395
+ };
1396
+ }
1397
+ }, {
1398
+ test: [/bingbot/i],
1399
+ describe: function describe() {
1400
+ return {
1401
+ type: PLATFORMS_MAP.bot,
1402
+ vendor: "Bing"
1403
+ };
1404
+ }
1405
+ }, {
1406
+ test: [/duckduckbot/i],
1407
+ describe: function describe() {
1408
+ return {
1409
+ type: PLATFORMS_MAP.bot,
1410
+ vendor: "DuckDuckGo"
1411
+ };
1412
+ }
1413
+ }, {
1414
+ test: [/claudebot/i, /claude-web/i, /claude-user/i, /claude-searchbot/i],
1415
+ describe: function describe() {
1416
+ return {
1417
+ type: PLATFORMS_MAP.bot,
1418
+ vendor: "Anthropic"
1419
+ };
1420
+ }
1421
+ }, {
1422
+ test: [/omgilibot/i, /webzio-extended/i],
1423
+ describe: function describe() {
1424
+ return {
1425
+ type: PLATFORMS_MAP.bot,
1426
+ vendor: "Webz.io"
1427
+ };
1428
+ }
1429
+ }, {
1430
+ test: [/diffbot/i],
1431
+ describe: function describe() {
1432
+ return {
1433
+ type: PLATFORMS_MAP.bot,
1434
+ vendor: "Diffbot"
1435
+ };
1436
+ }
1437
+ }, {
1438
+ test: [/perplexitybot/i],
1439
+ describe: function describe() {
1440
+ return {
1441
+ type: PLATFORMS_MAP.bot,
1442
+ vendor: "Perplexity AI"
1443
+ };
1444
+ }
1445
+ }, {
1446
+ test: [/perplexity-user/i],
1447
+ describe: function describe() {
1448
+ return {
1449
+ type: PLATFORMS_MAP.bot,
1450
+ vendor: "Perplexity AI"
1451
+ };
1452
+ }
1453
+ }, {
1454
+ test: [/youbot/i],
1455
+ describe: function describe() {
1456
+ return {
1457
+ type: PLATFORMS_MAP.bot,
1458
+ vendor: "You.com"
1459
+ };
1460
+ }
1461
+ }, {
1462
+ test: [/ia_archiver/i],
1463
+ describe: function describe() {
1464
+ return {
1465
+ type: PLATFORMS_MAP.bot,
1466
+ vendor: "Internet Archive"
1467
+ };
1468
+ }
1469
+ }, {
1470
+ test: [/meta-webindexer/i],
1471
+ describe: function describe() {
1472
+ return {
1473
+ type: PLATFORMS_MAP.bot,
1474
+ vendor: "Meta"
1475
+ };
1476
+ }
1477
+ }, {
1478
+ test: [/meta-externalads/i],
1479
+ describe: function describe() {
1480
+ return {
1481
+ type: PLATFORMS_MAP.bot,
1482
+ vendor: "Meta"
1483
+ };
1484
+ }
1485
+ }, {
1486
+ test: [/meta-externalagent/i],
1487
+ describe: function describe() {
1488
+ return {
1489
+ type: PLATFORMS_MAP.bot,
1490
+ vendor: "Meta"
1491
+ };
1492
+ }
1493
+ }, {
1494
+ test: [/meta-externalfetcher/i],
1495
+ describe: function describe() {
1496
+ return {
1497
+ type: PLATFORMS_MAP.bot,
1498
+ vendor: "Meta"
1499
+ };
1500
+ }
1501
+ }, {
1502
+ test: [/facebookexternalhit/i, /facebookcatalog/i],
1503
+ describe: function describe() {
1504
+ return {
1505
+ type: PLATFORMS_MAP.bot,
1506
+ vendor: "Meta"
1507
+ };
1508
+ }
1509
+ }, {
1510
+ test: [/slackbot/i, /slack-imgProxy/i],
1511
+ describe: function describe() {
1512
+ return {
1513
+ type: PLATFORMS_MAP.bot,
1514
+ vendor: "Slack"
1515
+ };
1516
+ }
1517
+ }, {
1518
+ test: [/yahoo/i],
1519
+ describe: function describe() {
1520
+ return {
1521
+ type: PLATFORMS_MAP.bot,
1522
+ vendor: "Yahoo"
1523
+ };
1524
+ }
1525
+ }, {
1526
+ test: [/yandexbot/i, /yandexmobilebot/i],
1527
+ describe: function describe() {
1528
+ return {
1529
+ type: PLATFORMS_MAP.bot,
1530
+ vendor: "Yandex"
1531
+ };
1532
+ }
1533
+ }, {
1534
+ test: [/pingdom/i],
1535
+ describe: function describe() {
1536
+ return {
1537
+ type: PLATFORMS_MAP.bot,
1538
+ vendor: "Pingdom"
1539
+ };
1540
+ }
1541
+ }, {
1542
+ test: [/huawei/i],
1543
+ describe: function describe(ua) {
1544
+ var model = Utils.getFirstMatch(/(can-l01)/i, ua) && "Nova";
1545
+ var platform = {
1546
+ type: PLATFORMS_MAP.mobile,
1547
+ vendor: "Huawei"
1548
+ };
1549
+ if (model) platform.model = model;
1550
+ return platform;
1551
+ }
1552
+ }, {
1553
+ test: [/nexus\s*(?:7|8|9|10).*/i],
1554
+ describe: function describe() {
1555
+ return {
1556
+ type: PLATFORMS_MAP.tablet,
1557
+ vendor: "Nexus"
1558
+ };
1559
+ }
1560
+ }, {
1561
+ test: [/ipad/i],
1562
+ describe: function describe() {
1563
+ return {
1564
+ type: PLATFORMS_MAP.tablet,
1565
+ vendor: "Apple",
1566
+ model: "iPad"
1567
+ };
1568
+ }
1569
+ }, {
1570
+ test: function test(parser) {
1571
+ return Utils.isFirefoxOnIpad(parser.getUA());
1572
+ },
1573
+ describe: function describe() {
1574
+ return {
1575
+ type: PLATFORMS_MAP.tablet,
1576
+ vendor: "Apple",
1577
+ model: "iPad"
1578
+ };
1579
+ }
1580
+ }, {
1581
+ test: [/kftt build/i],
1582
+ describe: function describe() {
1583
+ return {
1584
+ type: PLATFORMS_MAP.tablet,
1585
+ vendor: "Amazon",
1586
+ model: "Kindle Fire HD 7"
1587
+ };
1588
+ }
1589
+ }, {
1590
+ test: [/silk/i],
1591
+ describe: function describe() {
1592
+ return {
1593
+ type: PLATFORMS_MAP.tablet,
1594
+ vendor: "Amazon"
1595
+ };
1596
+ }
1597
+ }, {
1598
+ test: [/tablet(?! pc)/i],
1599
+ describe: function describe() {
1600
+ return {
1601
+ type: PLATFORMS_MAP.tablet
1602
+ };
1603
+ }
1604
+ }, {
1605
+ test: function test(parser) {
1606
+ var iDevice = parser.test(/ipod|iphone/i);
1607
+ var likeIDevice = parser.test(/like (ipod|iphone)/i);
1608
+ return iDevice && !likeIDevice;
1609
+ },
1610
+ describe: function describe(ua) {
1611
+ var model = Utils.getFirstMatch(/(ipod|iphone)/i, ua);
1612
+ return {
1613
+ type: PLATFORMS_MAP.mobile,
1614
+ vendor: "Apple",
1615
+ model: model
1616
+ };
1617
+ }
1618
+ }, {
1619
+ test: [/nexus\s*[0-6].*/i, /galaxy nexus/i],
1620
+ describe: function describe() {
1621
+ return {
1622
+ type: PLATFORMS_MAP.mobile,
1623
+ vendor: "Nexus"
1624
+ };
1625
+ }
1626
+ }, {
1627
+ test: [/Nokia/i],
1628
+ describe: function describe(ua) {
1629
+ var model = Utils.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i, ua);
1630
+ var platform = {
1631
+ type: PLATFORMS_MAP.mobile,
1632
+ vendor: "Nokia"
1633
+ };
1634
+ if (model) platform.model = model;
1635
+ return platform;
1636
+ }
1637
+ }, {
1638
+ test: [/[^-]mobi/i],
1639
+ describe: function describe() {
1640
+ return {
1641
+ type: PLATFORMS_MAP.mobile
1642
+ };
1643
+ }
1644
+ }, {
1645
+ test: function test(parser) {
1646
+ return parser.getBrowserName(true) === "blackberry";
1647
+ },
1648
+ describe: function describe() {
1649
+ return {
1650
+ type: PLATFORMS_MAP.mobile,
1651
+ vendor: "BlackBerry"
1652
+ };
1653
+ }
1654
+ }, {
1655
+ test: function test(parser) {
1656
+ return parser.getBrowserName(true) === "bada";
1657
+ },
1658
+ describe: function describe() {
1659
+ return {
1660
+ type: PLATFORMS_MAP.mobile
1661
+ };
1662
+ }
1663
+ }, {
1664
+ test: function test(parser) {
1665
+ return parser.getBrowserName() === "windows phone";
1666
+ },
1667
+ describe: function describe() {
1668
+ return {
1669
+ type: PLATFORMS_MAP.mobile,
1670
+ vendor: "Microsoft"
1671
+ };
1672
+ }
1673
+ }, {
1674
+ test: function test(parser) {
1675
+ var osMajorVersion = Number(String(parser.getOSVersion()).split(".")[0]);
1676
+ return parser.getOSName(true) === "android" && osMajorVersion >= 3;
1677
+ },
1678
+ describe: function describe() {
1679
+ return {
1680
+ type: PLATFORMS_MAP.tablet
1681
+ };
1682
+ }
1683
+ }, {
1684
+ test: function test(parser) {
1685
+ return parser.getOSName(true) === "android";
1686
+ },
1687
+ describe: function describe() {
1688
+ return {
1689
+ type: PLATFORMS_MAP.mobile
1690
+ };
1691
+ }
1692
+ }, {
1693
+ test: [/smart-?tv|smarttv/i],
1694
+ describe: function describe() {
1695
+ return {
1696
+ type: PLATFORMS_MAP.tv
1697
+ };
1698
+ }
1699
+ }, {
1700
+ test: [/netcast/i],
1701
+ describe: function describe() {
1702
+ return {
1703
+ type: PLATFORMS_MAP.tv
1704
+ };
1705
+ }
1706
+ }, {
1707
+ test: function test(parser) {
1708
+ return parser.getOSName(true) === "macos";
1709
+ },
1710
+ describe: function describe() {
1711
+ return {
1712
+ type: PLATFORMS_MAP.desktop,
1713
+ vendor: "Apple"
1714
+ };
1715
+ }
1716
+ }, {
1717
+ test: function test(parser) {
1718
+ return parser.getOSName(true) === "windows";
1719
+ },
1720
+ describe: function describe() {
1721
+ return {
1722
+ type: PLATFORMS_MAP.desktop
1723
+ };
1724
+ }
1725
+ }, {
1726
+ test: function test(parser) {
1727
+ return parser.getOSName(true) === "linux";
1728
+ },
1729
+ describe: function describe() {
1730
+ return {
1731
+ type: PLATFORMS_MAP.desktop
1732
+ };
1733
+ }
1734
+ }, {
1735
+ test: function test(parser) {
1736
+ return parser.getOSName(true) === "playstation 4";
1737
+ },
1738
+ describe: function describe() {
1739
+ return {
1740
+ type: PLATFORMS_MAP.tv
1741
+ };
1742
+ }
1743
+ }, {
1744
+ test: function test(parser) {
1745
+ return parser.getOSName(true) === "roku";
1746
+ },
1747
+ describe: function describe() {
1748
+ return {
1749
+ type: PLATFORMS_MAP.tv
1750
+ };
1751
+ }
1752
+ }];
1753
+
1754
+ //#endregion
1755
+ //#region src/parser-engines.js
1756
+ var parser_engines_default = [{
1757
+ test: function test(parser) {
1758
+ return parser.getBrowserName(true) === "microsoft edge";
1759
+ },
1760
+ describe: function describe(ua) {
1761
+ if (/\sedg\//i.test(ua)) return {
1762
+ name: ENGINE_MAP.Blink
1763
+ };
1764
+ var version = Utils.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i, ua);
1765
+ return {
1766
+ name: ENGINE_MAP.EdgeHTML,
1767
+ version: version
1768
+ };
1769
+ }
1770
+ }, {
1771
+ test: function test(parser) {
1772
+ return parser.getBrowserName(true) === "ladybird";
1773
+ },
1774
+ describe: function describe() {
1775
+ return {
1776
+ name: ENGINE_MAP.LibWeb
1777
+ };
1778
+ }
1779
+ }, {
1780
+ test: [/trident/i],
1781
+ describe: function describe(ua) {
1782
+ var engine = {
1783
+ name: ENGINE_MAP.Trident
1784
+ };
1785
+ var version = Utils.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i, ua);
1786
+ if (version) engine.version = version;
1787
+ return engine;
1788
+ }
1789
+ }, {
1790
+ test: function test(parser) {
1791
+ return parser.test(/presto/i);
1792
+ },
1793
+ describe: function describe(ua) {
1794
+ var engine = {
1795
+ name: ENGINE_MAP.Presto
1796
+ };
1797
+ var version = Utils.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i, ua);
1798
+ if (version) engine.version = version;
1799
+ return engine;
1800
+ }
1801
+ }, {
1802
+ test: function test(parser) {
1803
+ var isGecko = parser.test(/gecko/i);
1804
+ var likeGecko = parser.test(/like gecko/i);
1805
+ return isGecko && !likeGecko;
1806
+ },
1807
+ describe: function describe(ua) {
1808
+ var engine = {
1809
+ name: ENGINE_MAP.Gecko
1810
+ };
1811
+ var version = Utils.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i, ua);
1812
+ if (version) engine.version = version;
1813
+ return engine;
1814
+ }
1815
+ }, {
1816
+ test: [/(apple)?webkit\/537\.36/i],
1817
+ describe: function describe() {
1818
+ return {
1819
+ name: ENGINE_MAP.Blink
1820
+ };
1821
+ }
1822
+ }, {
1823
+ test: [/(apple)?webkit/i],
1824
+ describe: function describe(ua) {
1825
+ var engine = {
1826
+ name: ENGINE_MAP.WebKit
1827
+ };
1828
+ var version = Utils.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i, ua);
1829
+ if (version) engine.version = version;
1830
+ return engine;
1831
+ }
1832
+ }];
1833
+
1834
+ //#endregion
1835
+ //#region src/parser.js
1836
+ /**
1837
+ * @typedef {Object} ClientHints
1838
+ * @property {Array<{brand: string, version: string}>} [brands] Array of brand objects
1839
+ * @property {boolean} [mobile] Whether the device is mobile
1840
+ * @property {string} [platform] Platform name (e.g., "Windows", "macOS")
1841
+ * @property {string} [platformVersion] Platform version
1842
+ * @property {string} [architecture] CPU architecture
1843
+ * @property {string} [model] Device model
1844
+ * @property {boolean} [wow64] Whether running under WoW64
1845
+ */
1846
+ /**
1847
+ * The main class that arranges the whole parsing process.
1848
+ */
1849
+ var Parser = /*#__PURE__*/function () {
1850
+ /**
1851
+ * Create instance of Parser
1852
+ *
1853
+ * @param {String} UA User-Agent string
1854
+ * @param {Boolean|ClientHints} [skipParsingOrHints=false] Either a boolean to skip parsing,
1855
+ * or a ClientHints object containing User-Agent Client Hints data
1856
+ * @param {ClientHints} [clientHints] User-Agent Client Hints data (navigator.userAgentData)
1857
+ *
1858
+ * @throw {Error} in case of empty UA String
1859
+ *
1860
+ * @constructor
1861
+ */
1862
+ function Parser(UA, skipParsingOrHints, clientHints) {
1863
+ if (skipParsingOrHints === void 0) skipParsingOrHints = false;
1864
+ if (clientHints === void 0) clientHints = null;
1865
+ if (UA === void 0 || UA === null || UA === "") throw new Error("UserAgent parameter can't be empty");
1866
+ this._ua = UA;
1867
+ var skipParsing = false;
1868
+ if (typeof skipParsingOrHints === "boolean") {
1869
+ skipParsing = skipParsingOrHints;
1870
+ this._hints = clientHints;
1871
+ } else if (skipParsingOrHints != null && typeof skipParsingOrHints === "object") this._hints = skipParsingOrHints;else this._hints = null;
1872
+ /**
1873
+ * @typedef ParsedResult
1874
+ * @property {Object} browser
1875
+ * @property {String|undefined} [browser.name]
1876
+ * Browser name, like `"Chrome"` or `"Internet Explorer"`
1877
+ * @property {String|undefined} [browser.version] Browser version as a String `"12.01.45334.10"`
1878
+ * @property {Object} os
1879
+ * @property {String|undefined} [os.name] OS name, like `"Windows"` or `"macOS"`
1880
+ * @property {String|undefined} [os.version] OS version, like `"NT 5.1"` or `"10.11.1"`
1881
+ * @property {String|undefined} [os.versionName] OS name, like `"XP"` or `"High Sierra"`
1882
+ * @property {Object} platform
1883
+ * @property {String|undefined} [platform.type]
1884
+ * platform type, can be either `"desktop"`, `"tablet"` or `"mobile"`
1885
+ * @property {String|undefined} [platform.vendor] Vendor of the device,
1886
+ * like `"Apple"` or `"Samsung"`
1887
+ * @property {String|undefined} [platform.model] Device model,
1888
+ * like `"iPhone"` or `"Kindle Fire HD 7"`
1889
+ * @property {Object} engine
1890
+ * @property {String|undefined} [engine.name]
1891
+ * Can be any of this: `WebKit`, `Blink`, `Gecko`, `Trident`, `Presto`, `EdgeHTML`,
1892
+ * `LibWeb`
1893
+ * @property {String|undefined} [engine.version] String version of the engine
1894
+ */
1895
+ this.parsedResult = {};
1896
+ if (skipParsing !== true) this.parse();
1897
+ }
1898
+ /**
1899
+ * Get Client Hints data
1900
+ * @return {ClientHints|null}
1901
+ *
1902
+ * @public
1903
+ * @example
1904
+ * const parser = Bowser.getParser(UA, clientHints);
1905
+ * const hints = parser.getHints();
1906
+ * console.log(hints.platform); // 'Windows'
1907
+ * console.log(hints.mobile); // false
1908
+ */
1909
+ var _proto = Parser.prototype;
1910
+ _proto.getHints = function getHints() {
1911
+ return this._hints;
1912
+ };
1913
+ _proto.hasBrand = function hasBrand(brandName) {
1914
+ if (!this._hints || !Array.isArray(this._hints.brands)) return false;
1915
+ var brandLower = brandName.toLowerCase();
1916
+ return this._hints.brands.some(function (b) {
1917
+ return b.brand && b.brand.toLowerCase() === brandLower;
1918
+ });
1919
+ };
1920
+ _proto.getBrandVersion = function getBrandVersion(brandName) {
1921
+ if (!this._hints || !Array.isArray(this._hints.brands)) return;
1922
+ var brandLower = brandName.toLowerCase();
1923
+ var brand = Utils.find(this._hints.brands, function (b) {
1924
+ return b.brand && b.brand.toLowerCase() === brandLower;
1925
+ });
1926
+ return brand ? brand.version : void 0;
1927
+ };
1928
+ _proto.getUA = function getUA() {
1929
+ return this._ua;
1930
+ };
1931
+ _proto.test = function test(regex) {
1932
+ return regex.test(this._ua);
1933
+ };
1934
+ _proto.parseBrowser = function parseBrowser() {
1935
+ var _this = this;
1936
+ this.parsedResult.browser = {};
1937
+ var browserDescriptor = Utils.find(browsersList, function (_browser) {
1938
+ if (typeof _browser.test === "function") return _browser.test(_this);
1939
+ if (Array.isArray(_browser.test)) return _browser.test.some(function (condition) {
1940
+ return _this.test(condition);
1941
+ });
1942
+ throw new Error("Browser's test function is not valid");
1943
+ });
1944
+ if (browserDescriptor) this.parsedResult.browser = browserDescriptor.describe(this.getUA(), this);
1945
+ return this.parsedResult.browser;
1946
+ };
1947
+ _proto.getBrowser = function getBrowser() {
1948
+ if (this.parsedResult.browser) return this.parsedResult.browser;
1949
+ return this.parseBrowser();
1950
+ };
1951
+ _proto.getBrowserName = function getBrowserName(toLowerCase) {
1952
+ if (toLowerCase) return String(this.getBrowser().name).toLowerCase() || "";
1953
+ return this.getBrowser().name || "";
1954
+ };
1955
+ _proto.getBrowserVersion = function getBrowserVersion() {
1956
+ return this.getBrowser().version;
1957
+ };
1958
+ _proto.getOS = function getOS() {
1959
+ if (this.parsedResult.os) return this.parsedResult.os;
1960
+ return this.parseOS();
1961
+ };
1962
+ _proto.parseOS = function parseOS() {
1963
+ var _this2 = this;
1964
+ this.parsedResult.os = {};
1965
+ var os = Utils.find(parser_os_default, function (_os) {
1966
+ if (typeof _os.test === "function") return _os.test(_this2);
1967
+ if (Array.isArray(_os.test)) return _os.test.some(function (condition) {
1968
+ return _this2.test(condition);
1969
+ });
1970
+ throw new Error("Browser's test function is not valid");
1971
+ });
1972
+ if (os) this.parsedResult.os = os.describe(this.getUA());
1973
+ return this.parsedResult.os;
1974
+ };
1975
+ _proto.getOSName = function getOSName(toLowerCase) {
1976
+ var name = this.getOS().name;
1977
+ if (toLowerCase) return String(name).toLowerCase() || "";
1978
+ return name || "";
1979
+ };
1980
+ _proto.getOSVersion = function getOSVersion() {
1981
+ return this.getOS().version;
1982
+ };
1983
+ _proto.getPlatform = function getPlatform() {
1984
+ if (this.parsedResult.platform) return this.parsedResult.platform;
1985
+ return this.parsePlatform();
1986
+ };
1987
+ _proto.getPlatformType = function getPlatformType(toLowerCase) {
1988
+ if (toLowerCase === void 0) toLowerCase = false;
1989
+ var type = this.getPlatform().type;
1990
+ if (toLowerCase) return String(type).toLowerCase() || "";
1991
+ return type || "";
1992
+ };
1993
+ _proto.parsePlatform = function parsePlatform() {
1994
+ var _this3 = this;
1995
+ this.parsedResult.platform = {};
1996
+ var platform = Utils.find(parser_platforms_default, function (_platform) {
1997
+ if (typeof _platform.test === "function") return _platform.test(_this3);
1998
+ if (Array.isArray(_platform.test)) return _platform.test.some(function (condition) {
1999
+ return _this3.test(condition);
2000
+ });
2001
+ throw new Error("Browser's test function is not valid");
2002
+ });
2003
+ if (platform) this.parsedResult.platform = platform.describe(this.getUA());
2004
+ return this.parsedResult.platform;
2005
+ };
2006
+ _proto.getEngine = function getEngine() {
2007
+ if (this.parsedResult.engine) return this.parsedResult.engine;
2008
+ return this.parseEngine();
2009
+ };
2010
+ _proto.getEngineName = function getEngineName(toLowerCase) {
2011
+ if (toLowerCase) return String(this.getEngine().name).toLowerCase() || "";
2012
+ return this.getEngine().name || "";
2013
+ };
2014
+ _proto.parseEngine = function parseEngine() {
2015
+ var _this4 = this;
2016
+ this.parsedResult.engine = {};
2017
+ var engine = Utils.find(parser_engines_default, function (_engine) {
2018
+ if (typeof _engine.test === "function") return _engine.test(_this4);
2019
+ if (Array.isArray(_engine.test)) return _engine.test.some(function (condition) {
2020
+ return _this4.test(condition);
2021
+ });
2022
+ throw new Error("Browser's test function is not valid");
2023
+ });
2024
+ if (engine) this.parsedResult.engine = engine.describe(this.getUA());
2025
+ return this.parsedResult.engine;
2026
+ };
2027
+ _proto.parse = function parse() {
2028
+ this.parseBrowser();
2029
+ this.parseOS();
2030
+ this.parsePlatform();
2031
+ this.parseEngine();
2032
+ return this;
2033
+ };
2034
+ _proto.getResult = function getResult() {
2035
+ return Utils.assign({}, this.parsedResult);
2036
+ };
2037
+ _proto.satisfies = function satisfies(checkTree) {
2038
+ var _this5 = this;
2039
+ var platformsAndOSes = {};
2040
+ var platformsAndOSCounter = 0;
2041
+ var browsers = {};
2042
+ var browsersCounter = 0;
2043
+ Object.keys(checkTree).forEach(function (key) {
2044
+ var currentDefinition = checkTree[key];
2045
+ if (typeof currentDefinition === "string" || Array.isArray(currentDefinition)) {
2046
+ browsers[key] = currentDefinition;
2047
+ browsersCounter += 1;
2048
+ } else if (typeof currentDefinition === "object") {
2049
+ platformsAndOSes[key] = currentDefinition;
2050
+ platformsAndOSCounter += 1;
2051
+ }
2052
+ });
2053
+ if (platformsAndOSCounter > 0) {
2054
+ var platformsAndOSNames = Object.keys(platformsAndOSes);
2055
+ var OSMatchingDefinition = Utils.find(platformsAndOSNames, function (name) {
2056
+ return _this5.isOS(name);
2057
+ });
2058
+ if (OSMatchingDefinition) {
2059
+ var osResult = this.satisfies(platformsAndOSes[OSMatchingDefinition]);
2060
+ if (osResult !== void 0) return osResult;
2061
+ }
2062
+ var platformMatchingDefinition = Utils.find(platformsAndOSNames, function (name) {
2063
+ return _this5.isPlatform(name);
2064
+ });
2065
+ if (platformMatchingDefinition) {
2066
+ var platformResult = this.satisfies(platformsAndOSes[platformMatchingDefinition]);
2067
+ if (platformResult !== void 0) return platformResult;
2068
+ }
2069
+ }
2070
+ if (browsersCounter > 0) {
2071
+ var browserNames = Object.keys(browsers);
2072
+ var matchingDefinition = Utils.find(browserNames, function (name) {
2073
+ return _this5.isBrowser(name, true);
2074
+ });
2075
+ if (matchingDefinition !== void 0) return this.compareVersions(browsers[matchingDefinition]);
2076
+ }
2077
+ };
2078
+ _proto.isBrowser = function isBrowser(browserName, includingAlias) {
2079
+ if (includingAlias === void 0) includingAlias = false;
2080
+ var defaultBrowserName = this.getBrowserName().toLowerCase();
2081
+ var browserNameLower = browserName.toLowerCase();
2082
+ var alias = Utils.getBrowserTypeByAlias(browserNameLower);
2083
+ if (includingAlias && alias) browserNameLower = alias.toLowerCase();
2084
+ return browserNameLower === defaultBrowserName;
2085
+ };
2086
+ _proto.compareVersions = function compareVersions(versionsOrVersion) {
2087
+ var _this6 = this;
2088
+ if (typeof versionsOrVersion === "string") return this.compareVersion(versionsOrVersion);
2089
+ return versionsOrVersion.some(function (version) {
2090
+ return _this6.compareVersion(version);
2091
+ });
2092
+ };
2093
+ _proto.compareVersion = function compareVersion(version) {
2094
+ var expectedResults = [0];
2095
+ var comparableVersion = version;
2096
+ var isLoose = false;
2097
+ var currentBrowserVersion = this.getBrowserVersion();
2098
+ if (typeof currentBrowserVersion !== "string") return;
2099
+ if (version[0] === ">" || version[0] === "<") {
2100
+ comparableVersion = version.substr(1);
2101
+ if (version[1] === "=") {
2102
+ isLoose = true;
2103
+ comparableVersion = version.substr(2);
2104
+ } else expectedResults = [];
2105
+ if (version[0] === ">") expectedResults.push(1);else expectedResults.push(-1);
2106
+ } else if (version[0] === "=") comparableVersion = version.substr(1);else if (version[0] === "~") {
2107
+ isLoose = true;
2108
+ comparableVersion = version.substr(1);
2109
+ }
2110
+ return expectedResults.indexOf(Utils.compareVersions(currentBrowserVersion, comparableVersion, isLoose)) > -1;
2111
+ };
2112
+ _proto.isOS = function isOS(osName) {
2113
+ return this.getOSName(true) === String(osName).toLowerCase();
2114
+ };
2115
+ _proto.isPlatform = function isPlatform(platformType) {
2116
+ return this.getPlatformType(true) === String(platformType).toLowerCase();
2117
+ };
2118
+ _proto.isEngine = function isEngine(engineName) {
2119
+ return this.getEngineName(true) === String(engineName).toLowerCase();
2120
+ };
2121
+ _proto.is = function is(anything, includingAlias) {
2122
+ if (includingAlias === void 0) includingAlias = false;
2123
+ return this.isBrowser(anything, includingAlias) || this.isOS(anything) || this.isPlatform(anything);
2124
+ };
2125
+ _proto.some = function some(anythings) {
2126
+ var _this7 = this;
2127
+ if (anythings === void 0) anythings = [];
2128
+ return anythings.some(function (anything) {
2129
+ return _this7.is(anything);
2130
+ });
2131
+ };
2132
+ return Parser;
2133
+ }();
2134
+
2135
+ //#endregion
2136
+ //#region src/bowser.js
2137
+ /*!
2138
+ * Bowser - a browser detector
2139
+ * https://github.com/bowser-js/bowser
2140
+ * MIT License | (c) Dustin Diaz 2012-2015
2141
+ * MIT License | (c) Denis Demchenko 2015-2026
2142
+ */
2143
+ function _defineProperties(e, r) {
2144
+ for (var t = 0; t < r.length; t++) {
2145
+ var o = r[t];
2146
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
2147
+ }
2148
+ }
2149
+ function _createClass(e, r, t) {
2150
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
2151
+ writable: !1
2152
+ }), e;
2153
+ }
2154
+ function _toPropertyKey(t) {
2155
+ var i = _toPrimitive(t, "string");
2156
+ return "symbol" == typeof i ? i : i + "";
2157
+ }
2158
+ function _toPrimitive(t, r) {
2159
+ if ("object" != typeof t || !t) return t;
2160
+ var e = t[Symbol.toPrimitive];
2161
+ if (void 0 !== e) {
2162
+ var i = e.call(t, r || "default");
2163
+ if ("object" != typeof i) return i;
2164
+ throw new TypeError("@@toPrimitive must return a primitive value.");
2165
+ }
2166
+ return ("string" === r ? String : Number)(t);
2167
+ }
2168
+ /**
2169
+ * Bowser class.
2170
+ * Keep it simple as much as it can be.
2171
+ * It's supposed to work with collections of {@link Parser} instances
2172
+ * rather then solve one-instance problems.
2173
+ * All the one-instance stuff is located in Parser class.
2174
+ *
2175
+ * @class
2176
+ * @classdesc Bowser is a static object, that provides an API to the Parsers
2177
+ * @hideconstructor
2178
+ */
2179
+ var Bowser = /*#__PURE__*/function () {
2180
+ function Bowser() {}
2181
+ /**
2182
+ * Creates a {@link Parser} instance
2183
+ *
2184
+ * @param {String} UA UserAgent string
2185
+ * @param {Boolean|Object} [skipParsingOrHints=false] Either a boolean to skip parsing,
2186
+ * or a ClientHints object (navigator.userAgentData)
2187
+ * @param {Object} [clientHints] User-Agent Client Hints data (navigator.userAgentData)
2188
+ * @returns {Parser}
2189
+ * @throws {Error} when UA is not a String
2190
+ *
2191
+ * @example
2192
+ * const parser = Bowser.getParser(window.navigator.userAgent);
2193
+ * const result = parser.getResult();
2194
+ *
2195
+ * @example
2196
+ * // With User-Agent Client Hints
2197
+ * const parser = Bowser.getParser(
2198
+ * window.navigator.userAgent,
2199
+ * window.navigator.userAgentData
2200
+ * );
2201
+ */
2202
+ Bowser.getParser = function getParser(UA, skipParsingOrHints, clientHints) {
2203
+ if (skipParsingOrHints === void 0) skipParsingOrHints = false;
2204
+ if (clientHints === void 0) clientHints = null;
2205
+ if (typeof UA !== "string") throw new Error("UserAgent should be a string");
2206
+ return new Parser(UA, skipParsingOrHints, clientHints);
2207
+ };
2208
+ Bowser.parse = function parse(UA, clientHints) {
2209
+ if (clientHints === void 0) clientHints = null;
2210
+ return new Parser(UA, clientHints).getResult();
2211
+ };
2212
+ return _createClass(Bowser, null, [{
2213
+ key: "BROWSER_MAP",
2214
+ get: function get() {
2215
+ return BROWSER_MAP;
2216
+ }
2217
+ }, {
2218
+ key: "ENGINE_MAP",
2219
+ get: function get() {
2220
+ return ENGINE_MAP;
2221
+ }
2222
+ }, {
2223
+ key: "OS_MAP",
2224
+ get: function get() {
2225
+ return OS_MAP;
2226
+ }
2227
+ }, {
2228
+ key: "PLATFORMS_MAP",
2229
+ get: function get() {
2230
+ return PLATFORMS_MAP;
2231
+ }
2232
+ }]);
2233
+ }();
2234
+ var parse = Bowser.parse;
2235
+ var getParser = Bowser.getParser;
2236
+
2237
+ //#endregion
2238
+
2239
+
2240
+ /***/ }
2241
+
2242
+ };
2243
+ ;
2244
+ //# sourceMappingURL=vendors-node_modules_bowser_bowser_mjs.js.map