@bbn/bbn 2.0.217 → 2.0.220
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bbn.js +1 -1
- package/dist/bbn.js.map +1 -1
- package/dist/com.js +1 -1
- package/dist/db.js +19 -19
- package/dist/dt/classes/date.d.ts +1 -1
- package/dist/dt/classes/date.js +1 -1
- package/dist/dt/classes/dateTime.d.ts +1 -1
- package/dist/dt/classes/dateTime.js +1 -1
- package/dist/dt/classes/dt.d.ts +1 -1
- package/dist/dt/classes/dt.js +1 -1
- package/dist/dt/classes/duration.d.ts +1 -1
- package/dist/dt/classes/duration.js +1 -1
- package/dist/dt/classes/monthDay.d.ts +1 -1
- package/dist/dt/classes/monthDay.js +1 -1
- package/dist/dt/classes/time.d.ts +1 -1
- package/dist/dt/classes/time.js +1 -1
- package/dist/dt/classes/yearMonth.d.ts +1 -1
- package/dist/dt/classes/yearMonth.js +1 -1
- package/dist/dt/classes/zoned.d.ts +1 -1
- package/dist/dt/classes/zoned.js +1 -1
- package/dist/dt/functions/fromJsDate.d.ts +1 -1
- package/dist/dt/functions/fromJsDate.js +1 -1
- package/dist/dt/functions/intl-weekinfo-polyfill.js +1 -1
- package/dist/dt/functions/parse.js +1 -1
- package/dist/dt/vars/types.d.ts +1 -1
- package/dist/dt.js +1 -1
- package/dist/env.js +9 -8
- package/dist/fn/browser/log.d.ts +1 -1
- package/dist/fn/browser/log.js +5 -6
- package/dist/fn/init.js +75 -73
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -5
- package/package.json +1 -1
package/dist/com.js
CHANGED
|
@@ -213,7 +213,7 @@ onProgress, onChunkProgress, headers = {}, uploadId }) => {
|
|
|
213
213
|
const totalSize = file.size;
|
|
214
214
|
const totalChunks = Math.ceil(totalSize / chunkSize);
|
|
215
215
|
const finalUploadId = uploadId ||
|
|
216
|
-
(
|
|
216
|
+
(globalThis.crypto && crypto.randomUUID
|
|
217
217
|
? crypto.randomUUID()
|
|
218
218
|
: Date.now().toString(36) + Math.random().toString(36).slice(2));
|
|
219
219
|
let uploadedBytes = 0;
|
package/dist/db.js
CHANGED
|
@@ -13,11 +13,11 @@ import log from './fn/browser/log.js';
|
|
|
13
13
|
import isObject from './fn/type/isObject.js';
|
|
14
14
|
import isArray from './fn/type/isArray.js';
|
|
15
15
|
import extend from './fn/object/extend.js';
|
|
16
|
-
const idb =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
const idb = globalThis.indexedDB ||
|
|
17
|
+
globalThis.webkitIndexedDB ||
|
|
18
|
+
globalThis.mozIndexedDB ||
|
|
19
|
+
globalThis.OIndexedDB ||
|
|
20
|
+
globalThis.msIndexedDB;
|
|
21
21
|
const transformResult = (obj, fields) => {
|
|
22
22
|
if (!obj) {
|
|
23
23
|
return undefined;
|
|
@@ -239,9 +239,9 @@ class DbObject {
|
|
|
239
239
|
resolve();
|
|
240
240
|
return;
|
|
241
241
|
}
|
|
242
|
-
const matches = !where || !((_b = (_a =
|
|
242
|
+
const matches = !where || !((_b = (_a = globalThis.bbn) === null || _a === void 0 ? void 0 : _a.fn) === null || _b === void 0 ? void 0 : _b.search)
|
|
243
243
|
? true
|
|
244
|
-
: !
|
|
244
|
+
: !globalThis.bbn.fn.search([cursor.value], where);
|
|
245
245
|
if (matches) {
|
|
246
246
|
if (i >= start) {
|
|
247
247
|
const transformed = transformResult(cursor.value, fields);
|
|
@@ -378,35 +378,35 @@ const db = {
|
|
|
378
378
|
});
|
|
379
379
|
});
|
|
380
380
|
},
|
|
381
|
-
open(
|
|
381
|
+
open(database) {
|
|
382
382
|
return __awaiter(this, void 0, void 0, function* () {
|
|
383
383
|
if (!idb) {
|
|
384
384
|
throw new Error(_('IndexedDB is not available'));
|
|
385
385
|
}
|
|
386
|
-
if (!this._structures[
|
|
387
|
-
throw new Error(_('Impossible to find a structure for the database %s',
|
|
386
|
+
if (!this._structures[database]) {
|
|
387
|
+
throw new Error(_('Impossible to find a structure for the database %s', database));
|
|
388
388
|
}
|
|
389
|
-
if (this._connections[
|
|
390
|
-
return new DbObject(
|
|
389
|
+
if (this._connections[database]) {
|
|
390
|
+
return new DbObject(database);
|
|
391
391
|
}
|
|
392
392
|
yield new Promise((resolve, reject) => {
|
|
393
|
-
const req = idb.open(
|
|
393
|
+
const req = idb.open(database);
|
|
394
394
|
req.onupgradeneeded = () => {
|
|
395
|
-
const
|
|
396
|
-
const dbStructure = this._structures[
|
|
395
|
+
const db = req.result;
|
|
396
|
+
const dbStructure = this._structures[database] || {};
|
|
397
397
|
iterate(dbStructure, (structure, storeName) => {
|
|
398
|
-
if (!
|
|
399
|
-
this.updateStructure(storeName, structure,
|
|
398
|
+
if (!db.objectStoreNames.contains(storeName)) {
|
|
399
|
+
this.updateStructure(storeName, structure, db);
|
|
400
400
|
}
|
|
401
401
|
});
|
|
402
402
|
};
|
|
403
403
|
req.onsuccess = () => {
|
|
404
|
-
this._connections[
|
|
404
|
+
this._connections[database] = req.result;
|
|
405
405
|
resolve(req.result);
|
|
406
406
|
};
|
|
407
407
|
req.onerror = () => reject(req.error);
|
|
408
408
|
});
|
|
409
|
-
return new DbObject(
|
|
409
|
+
return new DbObject(database);
|
|
410
410
|
});
|
|
411
411
|
},
|
|
412
412
|
add(database, name, structure) {
|
package/dist/dt/classes/date.js
CHANGED
package/dist/dt/classes/dt.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Temporal } from 'temporal-polyfill';
|
|
1
|
+
import { Temporal } from '../../../node_modules/temporal-polyfill/index.js';
|
|
2
2
|
import { bbnDtTemporal } from '../vars/types.js';
|
|
3
3
|
import bbnDtDuration from './duration.js';
|
|
4
4
|
export declare abstract class bbnDt<TValue extends bbnDtTemporal> {
|
package/dist/dt/classes/dt.js
CHANGED
|
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
11
|
};
|
|
12
12
|
var _bbnDt_value;
|
|
13
|
-
import { Temporal } from 'temporal-polyfill';
|
|
13
|
+
import { Temporal } from '../../../node_modules/temporal-polyfill/index.js';
|
|
14
14
|
import { unitsCorrespondence, units, formatsMap } from '../vars/units.js';
|
|
15
15
|
import _ from '../../_.js';
|
|
16
16
|
import substr from '../../fn/string/substr.js';
|
|
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
11
|
};
|
|
12
12
|
var _bbnDtDuration_instances, _bbnDtDuration_value, _bbnDtDuration_unit, _bbnDtDuration_getUnitValue;
|
|
13
|
-
import { Temporal } from 'temporal-polyfill';
|
|
13
|
+
import { Temporal } from '../../../node_modules/temporal-polyfill/index.js';
|
|
14
14
|
import { units, unitsCorrespondence } from '../vars/units.js';
|
|
15
15
|
import getRow from '../../fn/object/getRow.js';
|
|
16
16
|
const DURATION_RELATIVE_TO = Temporal.ZonedDateTime.from('1970-01-01T00:00Z[UTC]');
|
package/dist/dt/classes/time.js
CHANGED
package/dist/dt/classes/zoned.js
CHANGED
|
@@ -30,7 +30,7 @@ function parseLocaleTag(tag) {
|
|
|
30
30
|
}
|
|
31
31
|
return { language, script, region };
|
|
32
32
|
}
|
|
33
|
-
const REGION_WEEK_INFO = import('../data/weekinfo-overrides.js');
|
|
33
|
+
const REGION_WEEK_INFO = globalThis.document ? import('../data/weekinfo-overrides.js') : {};
|
|
34
34
|
function computeWeekInfo(localeInstance) {
|
|
35
35
|
var _a, _b, _c;
|
|
36
36
|
const tag = (_c = (_a = localeInstance.baseName) !== null && _a !== void 0 ? _a : (_b = localeInstance.toString) === null || _b === void 0 ? void 0 : _b.call(localeInstance)) !== null && _c !== void 0 ? _c : 'und';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Temporal } from 'temporal-polyfill';
|
|
1
|
+
import { Temporal } from '../../../node_modules/temporal-polyfill/index.js';
|
|
2
2
|
import buildLocaleFromIntl from './buildLocaleFromIntl.js';
|
|
3
3
|
import bbnDtZoned from '../classes/zoned.js';
|
|
4
4
|
import bbnDtDateTime from '../classes/dateTime.js';
|
package/dist/dt/vars/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Temporal } from 'temporal-polyfill';
|
|
1
|
+
import { Temporal } from '../../../node_modules/temporal-polyfill/index.js';
|
|
2
2
|
export type bbnDtTemporal = Temporal.PlainDateTime | Temporal.PlainDate | Temporal.PlainTime | Temporal.PlainYearMonth | Temporal.PlainMonthDay | Temporal.ZonedDateTime;
|
package/dist/dt.js
CHANGED
package/dist/env.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1
2
|
export default {
|
|
2
|
-
siteTitle:
|
|
3
|
+
siteTitle: (_a = globalThis.document) === null || _a === void 0 ? void 0 : _a.title,
|
|
3
4
|
/* This variable should be set to true in debugging mode only */
|
|
4
5
|
logging: false,
|
|
5
6
|
/* Address of the CDN (where this file should be hosted) */
|
|
6
7
|
cdn: '',
|
|
7
8
|
/* Default language */
|
|
8
9
|
lang: 'en',
|
|
9
|
-
host:
|
|
10
|
-
url:
|
|
10
|
+
host: ((_b = globalThis.location) === null || _b === void 0 ? void 0 : _b.protocol) + '//' + ((_c = globalThis.location) === null || _c === void 0 ? void 0 : _c.hostname),
|
|
11
|
+
url: (_d = globalThis.location) === null || _d === void 0 ? void 0 : _d.href,
|
|
11
12
|
old_path: null,
|
|
12
13
|
/* True when non asynchronous Ajax loads */
|
|
13
14
|
loading: false,
|
|
@@ -15,15 +16,15 @@ export default {
|
|
|
15
16
|
get isEnumerating() {
|
|
16
17
|
return this._enumerated.length > 0;
|
|
17
18
|
},
|
|
18
|
-
/*
|
|
19
|
+
/* globalThis width */
|
|
19
20
|
width: 0,
|
|
20
|
-
/*
|
|
21
|
+
/* globalThis height */
|
|
21
22
|
height: 0,
|
|
22
23
|
/* Element currently focused (Element object) */
|
|
23
24
|
focused: false,
|
|
24
25
|
/* Last time user has been active */
|
|
25
26
|
last_focus: (new Date()).getTime(),
|
|
26
|
-
/* Sleep mode (tab or
|
|
27
|
+
/* Sleep mode (tab or globalThis unfocused */
|
|
27
28
|
sleep: false,
|
|
28
29
|
theme: 'dark',
|
|
29
30
|
/**
|
|
@@ -39,11 +40,11 @@ export default {
|
|
|
39
40
|
params: [],
|
|
40
41
|
isInit: false,
|
|
41
42
|
isFocused: false,
|
|
42
|
-
isVisible: !document.hidden,
|
|
43
|
+
isVisible: !((_e = globalThis.document) === null || _e === void 0 ? void 0 : _e.hidden),
|
|
43
44
|
timeoff: Math.round((new Date()).getTime() / 1000),
|
|
44
45
|
loggingLevel: 5,
|
|
45
46
|
ignoreUnload: false,
|
|
46
47
|
historyDisabled: false,
|
|
47
48
|
nav: 'ajax',
|
|
48
|
-
online:
|
|
49
|
+
online: (_f = globalThis.navigator) === null || _f === void 0 ? void 0 : _f.onLine
|
|
49
50
|
};
|
package/dist/fn/browser/log.d.ts
CHANGED
package/dist/fn/browser/log.js
CHANGED
|
@@ -14,12 +14,12 @@ import isFunction from '../type/isFunction.js';
|
|
|
14
14
|
*/
|
|
15
15
|
export default function log(...args) {
|
|
16
16
|
var _a, _b, _c, _d;
|
|
17
|
-
if (((_b = (_a =
|
|
17
|
+
if (((_b = (_a = globalThis.bbn) === null || _a === void 0 ? void 0 : _a.env) === null || _b === void 0 ? void 0 : _b.logging) && (globalThis.console !== undefined)) {
|
|
18
18
|
let cfg;
|
|
19
19
|
let level = 5;
|
|
20
20
|
let fn = 'log';
|
|
21
21
|
if (args[0] && typeof args[0] === 'object' && args[0]._bbn_console_style) {
|
|
22
|
-
if (args[0]._bbn_console_mode && isFunction(console[args[0]._bbn_console_mode])) {
|
|
22
|
+
if (args[0]._bbn_console_mode && isFunction(globalThis.console[args[0]._bbn_console_mode])) {
|
|
23
23
|
fn = args[0]._bbn_console_mode;
|
|
24
24
|
}
|
|
25
25
|
else {
|
|
@@ -28,8 +28,8 @@ export default function log(...args) {
|
|
|
28
28
|
}
|
|
29
29
|
args.shift();
|
|
30
30
|
}
|
|
31
|
-
const exec =
|
|
32
|
-
if (((_d = (_c =
|
|
31
|
+
const exec = globalThis.console[fn];
|
|
32
|
+
if (((_d = (_c = globalThis.bbn) === null || _c === void 0 ? void 0 : _c.env) === null || _d === void 0 ? void 0 : _d.loggingLevel) >= level) {
|
|
33
33
|
let i = 0;
|
|
34
34
|
while (i < args.length) {
|
|
35
35
|
let t = typeof args[i];
|
|
@@ -37,11 +37,10 @@ export default function log(...args) {
|
|
|
37
37
|
if (t === 'string' || t === 'number') {
|
|
38
38
|
consoleArguments.unshift('%c %s ', cfg);
|
|
39
39
|
}
|
|
40
|
-
exec.apply(
|
|
40
|
+
exec.apply(globalThis.console, consoleArguments);
|
|
41
41
|
i++;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
return this;
|
|
46
45
|
}
|
|
47
46
|
;
|
package/dist/fn/init.js
CHANGED
|
@@ -56,10 +56,10 @@ const onActivity = (e) => {
|
|
|
56
56
|
* @returns
|
|
57
57
|
*/
|
|
58
58
|
export default function init(cfg, force) {
|
|
59
|
+
var _a, _b;
|
|
59
60
|
let parts;
|
|
60
61
|
if (!bbn.env.isInit) {
|
|
61
|
-
bbn.env.root =
|
|
62
|
-
document.baseURI.length > 0 ? document.baseURI : bbn.env.host;
|
|
62
|
+
bbn.env.root = ((_b = (_a = globalThis.document) === null || _a === void 0 ? void 0 : _a.baseURI) === null || _b === void 0 ? void 0 : _b.length) ? globalThis.document.baseURI : bbn.env.host;
|
|
63
63
|
if (bbn.env.root.length && substr(bbn.env.root, -1) !== "/") {
|
|
64
64
|
bbn.env.root += "/";
|
|
65
65
|
}
|
|
@@ -70,88 +70,90 @@ export default function init(cfg, force) {
|
|
|
70
70
|
bbn.env.path = substr(bbn.env.url, bbn.env.root.length);
|
|
71
71
|
parts = bbn.env.path.split("/");
|
|
72
72
|
//$.each(parts, function(i, v){
|
|
73
|
-
each(parts, (v
|
|
73
|
+
each(parts, (v) => {
|
|
74
74
|
v = decodeURI(v.trim());
|
|
75
75
|
if (v !== "") {
|
|
76
76
|
bbn.env.params.push(v);
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
|
-
if (bbn.var.colors) {
|
|
80
|
-
addColors(bbn.var.colors);
|
|
81
|
-
}
|
|
82
79
|
setupIntl();
|
|
83
|
-
|
|
84
|
-
if (
|
|
85
|
-
bbn.
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
bbn.env.isVisible = true;
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
document.addEventListener("focus", (e) => {
|
|
92
|
-
if (e.target instanceof HTMLElement &&
|
|
93
|
-
!e.target.classList.contains("bbn-no")) {
|
|
94
|
-
bbn.env.focused = e.target;
|
|
95
|
-
}
|
|
96
|
-
bbn.env.isFocused = true;
|
|
97
|
-
bbn.env.last_focus = timestamp();
|
|
98
|
-
});
|
|
99
|
-
document.addEventListener("blur", (e) => {
|
|
100
|
-
if (e.target instanceof HTMLElement &&
|
|
101
|
-
!e.target.classList.contains("bbn-no")) {
|
|
102
|
-
bbn.env.focused = e.target;
|
|
80
|
+
if (globalThis.document) {
|
|
81
|
+
if (bbn.var.colors) {
|
|
82
|
+
addColors(bbn.var.colors);
|
|
103
83
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
84
|
+
globalThis.document.addEventListener("visibilitychange", () => {
|
|
85
|
+
if (document.hidden) {
|
|
86
|
+
bbn.env.isVisible = false;
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
bbn.env.isVisible = true;
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
globalThis.document.addEventListener("focus", (e) => {
|
|
93
|
+
if (e.target instanceof HTMLElement &&
|
|
94
|
+
!e.target.classList.contains("bbn-no")) {
|
|
95
|
+
bbn.env.focused = e.target;
|
|
96
|
+
}
|
|
97
|
+
bbn.env.isFocused = true;
|
|
98
|
+
bbn.env.last_focus = timestamp();
|
|
99
|
+
});
|
|
100
|
+
globalThis.document.addEventListener("blur", (e) => {
|
|
101
|
+
if (e.target instanceof HTMLElement &&
|
|
102
|
+
!e.target.classList.contains("bbn-no")) {
|
|
103
|
+
bbn.env.focused = e.target;
|
|
104
|
+
}
|
|
105
|
+
bbn.env.isFocused = false;
|
|
106
|
+
bbn.env.last_focus = timestamp();
|
|
107
|
+
});
|
|
108
|
+
globalThis.document.addEventListener("click", onActivity);
|
|
109
|
+
globalThis.document.addEventListener("keydown", onActivity);
|
|
110
|
+
globalThis.document.addEventListener("focusin", onFocus);
|
|
111
|
+
globalThis.document.addEventListener("focusout", onFocus);
|
|
112
|
+
globalThis.addEventListener("hashchange", () => {
|
|
113
|
+
bbn.env.hashChanged = new Date().getTime();
|
|
114
|
+
}, false);
|
|
115
|
+
globalThis.addEventListener("resize", () => {
|
|
116
|
+
resize();
|
|
117
|
+
});
|
|
118
|
+
globalThis.addEventListener("orientationchange", () => {
|
|
119
|
+
resize();
|
|
120
|
+
});
|
|
118
121
|
resize();
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
document.body.classList.add("bbn-tablet");
|
|
122
|
+
if (isMobile()) {
|
|
123
|
+
globalThis.document.body.classList.add("bbn-mobile");
|
|
124
|
+
if (isTabletDevice()) {
|
|
125
|
+
globalThis.document.body.classList.add("bbn-tablet");
|
|
126
|
+
}
|
|
125
127
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
128
|
+
if (globalThis.history) {
|
|
129
|
+
globalThis.onpopstate = function (e) {
|
|
130
|
+
let h = globalThis.history;
|
|
131
|
+
if (!bbn.env.historyDisabled && h) {
|
|
132
|
+
//e.preventDefault();
|
|
133
|
+
if (bbn.fn.defaultHistoryFunction(h.state)) {
|
|
134
|
+
let state = h.state;
|
|
135
|
+
if (state) {
|
|
136
|
+
//link(substr(state.url, bbn.env.root.length), $.extend({title: state.title}, state.data));
|
|
137
|
+
link(state.url, extend({ title: state.title || bbn.env.siteTitle }, state.data || {}));
|
|
138
|
+
}
|
|
139
|
+
else if (state && state.data && isFunction(state.data.script)) {
|
|
140
|
+
state.data.script();
|
|
141
|
+
}
|
|
140
142
|
}
|
|
141
143
|
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
globalThis.addEventListener('online', () => {
|
|
147
|
+
bbn.env.online = true;
|
|
148
|
+
});
|
|
149
|
+
globalThis.addEventListener('offline', () => {
|
|
150
|
+
bbn.env.online = false;
|
|
151
|
+
});
|
|
152
|
+
bbn.env.isInit = true;
|
|
153
|
+
globalThis.document.dispatchEvent(new Event("bbninit"));
|
|
154
|
+
if (bbn.env.logging) {
|
|
155
|
+
log("Logging in bbn is enabled");
|
|
156
|
+
}
|
|
155
157
|
}
|
|
156
158
|
}
|
|
157
159
|
}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Temporal } from 'temporal-polyfill';
|
|
1
|
+
import { Temporal } from '../node_modules/temporal-polyfill/index.js';
|
|
2
2
|
import _ from './_.js';
|
|
3
3
|
import $ from './$.js';
|
|
4
4
|
import lng from './lng.js';
|
|
@@ -92,10 +92,10 @@ const bbn = {
|
|
|
92
92
|
}
|
|
93
93
|
]
|
|
94
94
|
};
|
|
95
|
-
if ('undefined' !== typeof
|
|
96
|
-
|
|
97
|
-
if (!
|
|
98
|
-
|
|
95
|
+
if ('undefined' !== typeof globalThis) {
|
|
96
|
+
globalThis.bbn = bbn;
|
|
97
|
+
if (!globalThis.Temporal) {
|
|
98
|
+
globalThis.Temporal = Temporal;
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
export { bbn as default, bbn, Temporal };
|