@fileverse-dev/fortune-react 1.0.2-mod-98 → 1.0.2-mod-99
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/index.umd.js +44 -385
- package/dist/index.umd.min.js +7 -7
- package/package.json +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -18604,37 +18604,10 @@
|
|
|
18604
18604
|
return -1 * toNumber(number);
|
|
18605
18605
|
}
|
|
18606
18606
|
|
|
18607
|
-
function _typeof$1(o) {
|
|
18608
|
-
|
|
18609
|
-
|
|
18610
|
-
|
|
18611
|
-
return typeof o;
|
|
18612
|
-
} : function (o) {
|
|
18613
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
18614
|
-
}, _typeof$1(o);
|
|
18615
|
-
}
|
|
18616
|
-
function _defineProperty$1(e, r, t) {
|
|
18617
|
-
return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, {
|
|
18618
|
-
value: t,
|
|
18619
|
-
enumerable: !0,
|
|
18620
|
-
configurable: !0,
|
|
18621
|
-
writable: !0
|
|
18622
|
-
}) : e[r] = t, e;
|
|
18623
|
-
}
|
|
18624
|
-
function _toPropertyKey$1(t) {
|
|
18625
|
-
var i = _toPrimitive$1(t, "string");
|
|
18626
|
-
return "symbol" == _typeof$1(i) ? i : i + "";
|
|
18627
|
-
}
|
|
18628
|
-
function _toPrimitive$1(t, r) {
|
|
18629
|
-
if ("object" != _typeof$1(t) || !t) return t;
|
|
18630
|
-
var e = t[Symbol.toPrimitive];
|
|
18631
|
-
if (void 0 !== e) {
|
|
18632
|
-
var i = e.call(t, r || "default");
|
|
18633
|
-
if ("object" != _typeof$1(i)) return i;
|
|
18634
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
18635
|
-
}
|
|
18636
|
-
return ("string" === r ? String : Number)(t);
|
|
18637
|
-
}
|
|
18607
|
+
function _typeof$1(o) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$1(o); }
|
|
18608
|
+
function _defineProperty$1(e, r, t) { return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
18609
|
+
function _toPropertyKey$1(t) { var i = _toPrimitive$1(t, "string"); return "symbol" == _typeof$1(i) ? i : i + ""; }
|
|
18610
|
+
function _toPrimitive$1(t, r) { if ("object" != _typeof$1(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$1(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
18638
18611
|
var ERROR = "ERROR";
|
|
18639
18612
|
var ERROR_DIV_ZERO = "DIV/0";
|
|
18640
18613
|
var ERROR_NAME = "NAME";
|
|
@@ -37056,8 +37029,7 @@
|
|
|
37056
37029
|
Gnosisscan: "GNOSIS_API_KEY",
|
|
37057
37030
|
Firefly: "FIRE_FLY_API_KEY",
|
|
37058
37031
|
GnosisPay: 'GNOSIS_API_KEY',
|
|
37059
|
-
Neynar: 'NEYNAR_API_KEY'
|
|
37060
|
-
Defillama: 'DEFILLAMA_API_KEY'
|
|
37032
|
+
Neynar: 'NEYNAR_API_KEY'
|
|
37061
37033
|
};
|
|
37062
37034
|
|
|
37063
37035
|
const fromTimeStampToBlock = async (timestamp, chain, apiKey) => {
|
|
@@ -37199,19 +37171,6 @@
|
|
|
37199
37171
|
return user && user.fid || null;
|
|
37200
37172
|
};
|
|
37201
37173
|
|
|
37202
|
-
// remove nested structure from the response
|
|
37203
|
-
const removeNestedStructure = (json) => {
|
|
37204
|
-
return json.map(item => {
|
|
37205
|
-
const flat = {};
|
|
37206
|
-
for (const [key, value] of Object.entries(item)) {
|
|
37207
|
-
if (typeof value !== 'object' || value === null) {
|
|
37208
|
-
flat[key] = value;
|
|
37209
|
-
}
|
|
37210
|
-
}
|
|
37211
|
-
return flat;
|
|
37212
|
-
});
|
|
37213
|
-
};
|
|
37214
|
-
|
|
37215
37174
|
async function FIREFLY() {
|
|
37216
37175
|
const [platform, contentType, identifier, start = 0, end = 10] = argsToArray(arguments);
|
|
37217
37176
|
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Firefly);
|
|
@@ -37271,110 +37230,9 @@
|
|
|
37271
37230
|
}
|
|
37272
37231
|
}
|
|
37273
37232
|
|
|
37274
|
-
async function LENS() {
|
|
37275
|
-
const [contentType, identifier, start = 0, end = 10] = argsToArray(arguments);
|
|
37276
|
-
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Firefly);
|
|
37277
|
-
if (!API_KEY) return `${SERVICE_API_KEY.Firefly}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
|
|
37278
|
-
|
|
37279
|
-
const baseUrl = "https://openapi.firefly.land/v1/fileverse/fetch";
|
|
37280
|
-
const headers = { "x-api-key": API_KEY };
|
|
37281
|
-
|
|
37282
|
-
const typeMap = {
|
|
37283
|
-
posts: "lensid",
|
|
37284
|
-
replies: "lenspostid",
|
|
37285
|
-
};
|
|
37286
|
-
|
|
37287
|
-
const platformType = typeMap[contentType];
|
|
37288
|
-
if (!platformType) return `Lens: ${ERROR_MESSAGES_FLAG.INVALID_TYPE}`;
|
|
37289
|
-
|
|
37290
|
-
const query = identifier
|
|
37291
|
-
.split(",")
|
|
37292
|
-
.map(s => s.trim())
|
|
37293
|
-
.filter(Boolean)
|
|
37294
|
-
.join(",");
|
|
37295
|
-
|
|
37296
|
-
const url = new URL(baseUrl);
|
|
37297
|
-
url.searchParams.set("query", query);
|
|
37298
|
-
url.searchParams.set("type", platformType);
|
|
37299
|
-
url.searchParams.set("start", String(start));
|
|
37300
|
-
url.searchParams.set("end", String(end));
|
|
37301
|
-
|
|
37302
|
-
try {
|
|
37303
|
-
const res = await fetch(url.toString(), { headers });
|
|
37304
|
-
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
|
37305
|
-
|
|
37306
|
-
const json = await res.json();
|
|
37307
|
-
if (!Array.isArray(json?.data)) return [];
|
|
37308
|
-
|
|
37309
|
-
return json.data.map(item => {
|
|
37310
|
-
const flat = {};
|
|
37311
|
-
for (const [key, value] of Object.entries(item)) {
|
|
37312
|
-
if (typeof value !== "object" || value === null) {
|
|
37313
|
-
flat[key] = value;
|
|
37314
|
-
}
|
|
37315
|
-
}
|
|
37316
|
-
flat.platform = platform;
|
|
37317
|
-
return flat;
|
|
37318
|
-
});
|
|
37319
|
-
|
|
37320
|
-
} catch (err) {
|
|
37321
|
-
console.error("LENS fetch error:", err);
|
|
37322
|
-
return ERROR_MESSAGES_FLAG.DEFAULT;
|
|
37323
|
-
}
|
|
37324
|
-
}
|
|
37325
|
-
|
|
37326
|
-
async function FARCASTER() {
|
|
37327
|
-
const [contentType, identifier, start = 0, end = 10] = argsToArray(arguments);
|
|
37328
|
-
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Firefly);
|
|
37329
|
-
if (!API_KEY) return `${SERVICE_API_KEY.Firefly}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
|
|
37330
|
-
|
|
37331
|
-
const baseUrl = "https://openapi.firefly.land/v1/fileverse/fetch";
|
|
37332
|
-
const headers = { "x-api-key": API_KEY };
|
|
37333
37233
|
|
|
37334
|
-
const typeMap = {
|
|
37335
|
-
posts: "farcasterid",
|
|
37336
|
-
replies: "farcasterpostid",
|
|
37337
|
-
channels: "farcasterchannels",
|
|
37338
|
-
};
|
|
37339
37234
|
|
|
37340
|
-
const platformType = typeMap[contentType];
|
|
37341
|
-
if (!platformType) return `Farcaster: ${ERROR_MESSAGES_FLAG.INVALID_TYPE}`;
|
|
37342
37235
|
|
|
37343
|
-
const query = identifier
|
|
37344
|
-
.split(",")
|
|
37345
|
-
.map(s => s.trim())
|
|
37346
|
-
.filter(Boolean)
|
|
37347
|
-
.join(",");
|
|
37348
|
-
|
|
37349
|
-
const url = new URL(baseUrl);
|
|
37350
|
-
url.searchParams.set("query", query);
|
|
37351
|
-
url.searchParams.set("type", platformType);
|
|
37352
|
-
url.searchParams.set("start", String(start));
|
|
37353
|
-
url.searchParams.set("end", String(end));
|
|
37354
|
-
|
|
37355
|
-
try {
|
|
37356
|
-
const res = await fetch(url.toString(), { headers });
|
|
37357
|
-
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
|
37358
|
-
|
|
37359
|
-
const json = await res.json();
|
|
37360
|
-
if (!Array.isArray(json?.data)) return [];
|
|
37361
|
-
|
|
37362
|
-
return json.data.map(item => {
|
|
37363
|
-
const flat = {};
|
|
37364
|
-
for (const [key, value] of Object.entries(item)) {
|
|
37365
|
-
if (typeof value !== "object" || value === null) {
|
|
37366
|
-
flat[key] = value;
|
|
37367
|
-
}
|
|
37368
|
-
}
|
|
37369
|
-
flat.platform = platform;
|
|
37370
|
-
return flat;
|
|
37371
|
-
});
|
|
37372
|
-
|
|
37373
|
-
} catch (err) {
|
|
37374
|
-
console.error("Farcaster fetch error:", err);
|
|
37375
|
-
return ERROR_MESSAGES_FLAG.DEFAULT;
|
|
37376
|
-
}
|
|
37377
|
-
}
|
|
37378
37236
|
|
|
37379
37237
|
async function BLOCKSCOUT() {
|
|
37380
37238
|
let [address, type, chain, startTimestamp, endTimestamp, page, offset] = argsToArray(arguments);
|
|
@@ -37609,9 +37467,9 @@
|
|
|
37609
37467
|
|
|
37610
37468
|
switch (lowerCategory) {
|
|
37611
37469
|
case 'price': {
|
|
37612
|
-
const
|
|
37613
|
-
const
|
|
37614
|
-
if (!token) {
|
|
37470
|
+
const vsCurrencies = param1;
|
|
37471
|
+
const token = param2;
|
|
37472
|
+
if (!token || !vsCurrencies) {
|
|
37615
37473
|
return `${SERVICE_API_KEY.Coingecko}${ERROR_MESSAGES_FLAG.INVALID_PARAM}`;
|
|
37616
37474
|
}
|
|
37617
37475
|
url = `https://api.coingecko.com/api/v3/simple/price?vs_currencies=${vsCurrencies ? vsCurrencies : 'usd' }&symbols=${token}`;
|
|
@@ -37692,14 +37550,11 @@
|
|
|
37692
37550
|
return [output];
|
|
37693
37551
|
}
|
|
37694
37552
|
|
|
37695
|
-
|
|
37553
|
+
const data = json;
|
|
37696
37554
|
|
|
37697
37555
|
if (lowerCategory === 'derivatives') {
|
|
37698
|
-
if (json.length > 200) {
|
|
37699
|
-
data = json.slice(0, 200);
|
|
37700
|
-
}
|
|
37701
37556
|
if (json && json.tickers && json.tickers.tickers) {
|
|
37702
|
-
data = json.tickers.tickers
|
|
37557
|
+
data = json.tickers.tickers;
|
|
37703
37558
|
}
|
|
37704
37559
|
}
|
|
37705
37560
|
|
|
@@ -37719,6 +37574,9 @@
|
|
|
37719
37574
|
}
|
|
37720
37575
|
}
|
|
37721
37576
|
|
|
37577
|
+
|
|
37578
|
+
|
|
37579
|
+
|
|
37722
37580
|
async function EOA(
|
|
37723
37581
|
) {
|
|
37724
37582
|
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Etherscan);
|
|
@@ -37890,34 +37748,6 @@
|
|
|
37890
37748
|
}
|
|
37891
37749
|
}
|
|
37892
37750
|
|
|
37893
|
-
async function DEFILLAMA() {
|
|
37894
|
-
let [category, param1] = argsToArray(arguments);
|
|
37895
|
-
const apiKey = window.localStorage.getItem(SERVICE_API_KEY.Defillama);
|
|
37896
|
-
if (!apiKey) return `${SERVICE_API_KEY.Defillama}_MISSING`;
|
|
37897
|
-
const baseUrl = 'https://api.llama.fi/';
|
|
37898
|
-
const categoryList = ['protocols', 'yields', 'dex'];
|
|
37899
|
-
const categoryMap = {
|
|
37900
|
-
[categoryList[0]]: 'protocols',
|
|
37901
|
-
[categoryList[1]]: 'pools',
|
|
37902
|
-
[categoryList[2]]: 'overview/dexs?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true'
|
|
37903
|
-
};
|
|
37904
|
-
let url = `${baseUrl}/${categoryMap[category]}`;
|
|
37905
|
-
if(categoryMap[category] === categoryList[0] && param1){
|
|
37906
|
-
url += `/${param1}`;
|
|
37907
|
-
}
|
|
37908
|
-
try {
|
|
37909
|
-
const response = await fetch(url);
|
|
37910
|
-
if (!response.ok) throw new Error(`HTTP error! Status: ${response.status}`);
|
|
37911
|
-
let json = await response.json();
|
|
37912
|
-
if(json.length > 300){
|
|
37913
|
-
json = json.slice(0, 300);
|
|
37914
|
-
}
|
|
37915
|
-
return removeNestedStructure(json);
|
|
37916
|
-
} catch (e) {
|
|
37917
|
-
console.log(e);
|
|
37918
|
-
return "ERROR IN FETCHING";
|
|
37919
|
-
}
|
|
37920
|
-
}
|
|
37921
37751
|
function POLYMARKET() {
|
|
37922
37752
|
return "Coming Soon"
|
|
37923
37753
|
}
|
|
@@ -38047,7 +37877,6 @@
|
|
|
38047
37877
|
DEC2HEX: DEC2HEX,
|
|
38048
37878
|
DEC2OCT: DEC2OCT,
|
|
38049
37879
|
DECIMAL: DECIMAL,
|
|
38050
|
-
DEFILLAMA: DEFILLAMA,
|
|
38051
37880
|
DEGREES: DEGREES,
|
|
38052
37881
|
DELTA: DELTA,
|
|
38053
37882
|
DEVSQ: DEVSQ,
|
|
@@ -38083,7 +37912,6 @@
|
|
|
38083
37912
|
FACT: FACT,
|
|
38084
37913
|
FACTDOUBLE: FACTDOUBLE,
|
|
38085
37914
|
FALSE: FALSE,
|
|
38086
|
-
FARCASTER: FARCASTER,
|
|
38087
37915
|
FDIST: FDIST,
|
|
38088
37916
|
FDISTRT: FDISTRT,
|
|
38089
37917
|
FIND: FIND,
|
|
@@ -38175,7 +38003,6 @@
|
|
|
38175
38003
|
LCM: LCM,
|
|
38176
38004
|
LEFT: LEFT,
|
|
38177
38005
|
LEN: LEN,
|
|
38178
|
-
LENS: LENS,
|
|
38179
38006
|
LINEST: LINEST,
|
|
38180
38007
|
LN: LN,
|
|
38181
38008
|
LOG: LOG,
|
|
@@ -38477,30 +38304,12 @@
|
|
|
38477
38304
|
}
|
|
38478
38305
|
func$c.SYMBOL = SYMBOL$c;
|
|
38479
38306
|
|
|
38480
|
-
function _toConsumableArray$1(r) {
|
|
38481
|
-
|
|
38482
|
-
}
|
|
38483
|
-
function
|
|
38484
|
-
|
|
38485
|
-
}
|
|
38486
|
-
function _unsupportedIterableToArray$1(r, a) {
|
|
38487
|
-
if (r) {
|
|
38488
|
-
if ("string" == typeof r) return _arrayLikeToArray$1(r, a);
|
|
38489
|
-
var t = {}.toString.call(r).slice(8, -1);
|
|
38490
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0;
|
|
38491
|
-
}
|
|
38492
|
-
}
|
|
38493
|
-
function _iterableToArray$1(r) {
|
|
38494
|
-
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
38495
|
-
}
|
|
38496
|
-
function _arrayWithoutHoles$1(r) {
|
|
38497
|
-
if (Array.isArray(r)) return _arrayLikeToArray$1(r);
|
|
38498
|
-
}
|
|
38499
|
-
function _arrayLikeToArray$1(r, a) {
|
|
38500
|
-
(null == a || a > r.length) && (a = r.length);
|
|
38501
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
38502
|
-
return n;
|
|
38503
|
-
}
|
|
38307
|
+
function _toConsumableArray$1(r) { return _arrayWithoutHoles$1(r) || _iterableToArray$1(r) || _unsupportedIterableToArray$1(r) || _nonIterableSpread$1(); }
|
|
38308
|
+
function _nonIterableSpread$1() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
38309
|
+
function _unsupportedIterableToArray$1(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0; } }
|
|
38310
|
+
function _iterableToArray$1(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
38311
|
+
function _arrayWithoutHoles$1(r) { if (Array.isArray(r)) return _arrayLikeToArray$1(r); }
|
|
38312
|
+
function _arrayLikeToArray$1(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
38504
38313
|
var availableOperators = Object.create(null);
|
|
38505
38314
|
|
|
38506
38315
|
/**
|
|
@@ -40048,54 +39857,12 @@
|
|
|
40048
39857
|
return string;
|
|
40049
39858
|
}
|
|
40050
39859
|
|
|
40051
|
-
function _slicedToArray$1(r, e) {
|
|
40052
|
-
|
|
40053
|
-
}
|
|
40054
|
-
function
|
|
40055
|
-
|
|
40056
|
-
}
|
|
40057
|
-
function _unsupportedIterableToArray$2(r, a) {
|
|
40058
|
-
if (r) {
|
|
40059
|
-
if ("string" == typeof r) return _arrayLikeToArray$2(r, a);
|
|
40060
|
-
var t = {}.toString.call(r).slice(8, -1);
|
|
40061
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$2(r, a) : void 0;
|
|
40062
|
-
}
|
|
40063
|
-
}
|
|
40064
|
-
function _arrayLikeToArray$2(r, a) {
|
|
40065
|
-
(null == a || a > r.length) && (a = r.length);
|
|
40066
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
40067
|
-
return n;
|
|
40068
|
-
}
|
|
40069
|
-
function _iterableToArrayLimit$1(r, l) {
|
|
40070
|
-
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
40071
|
-
if (null != t) {
|
|
40072
|
-
var e,
|
|
40073
|
-
n,
|
|
40074
|
-
i,
|
|
40075
|
-
u,
|
|
40076
|
-
a = [],
|
|
40077
|
-
f = !0,
|
|
40078
|
-
o = !1;
|
|
40079
|
-
try {
|
|
40080
|
-
if (i = (t = t.call(r)).next, 0 === l) {
|
|
40081
|
-
if (Object(t) !== t) return;
|
|
40082
|
-
f = !1;
|
|
40083
|
-
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
40084
|
-
} catch (r) {
|
|
40085
|
-
o = !0, n = r;
|
|
40086
|
-
} finally {
|
|
40087
|
-
try {
|
|
40088
|
-
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
40089
|
-
} finally {
|
|
40090
|
-
if (o) throw n;
|
|
40091
|
-
}
|
|
40092
|
-
}
|
|
40093
|
-
return a;
|
|
40094
|
-
}
|
|
40095
|
-
}
|
|
40096
|
-
function _arrayWithHoles$1(r) {
|
|
40097
|
-
if (Array.isArray(r)) return r;
|
|
40098
|
-
}
|
|
39860
|
+
function _slicedToArray$1(r, e) { return _arrayWithHoles$1(r) || _iterableToArrayLimit$1(r, e) || _unsupportedIterableToArray$2(r, e) || _nonIterableRest$1(); }
|
|
39861
|
+
function _nonIterableRest$1() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
39862
|
+
function _unsupportedIterableToArray$2(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$2(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$2(r, a) : void 0; } }
|
|
39863
|
+
function _arrayLikeToArray$2(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
39864
|
+
function _iterableToArrayLimit$1(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
39865
|
+
function _arrayWithHoles$1(r) { if (Array.isArray(r)) return r; }
|
|
40099
39866
|
/**
|
|
40100
39867
|
* Convert row label to index.
|
|
40101
39868
|
*
|
|
@@ -40208,133 +39975,25 @@
|
|
|
40208
39975
|
return columnLabel + rowLabel;
|
|
40209
39976
|
}
|
|
40210
39977
|
|
|
40211
|
-
function _typeof$2(o) {
|
|
40212
|
-
|
|
40213
|
-
|
|
40214
|
-
|
|
40215
|
-
|
|
40216
|
-
|
|
40217
|
-
|
|
40218
|
-
|
|
40219
|
-
}
|
|
40220
|
-
function
|
|
40221
|
-
|
|
40222
|
-
}
|
|
40223
|
-
function
|
|
40224
|
-
|
|
40225
|
-
}
|
|
40226
|
-
function
|
|
40227
|
-
|
|
40228
|
-
|
|
40229
|
-
|
|
40230
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$3(r, a) : void 0;
|
|
40231
|
-
}
|
|
40232
|
-
}
|
|
40233
|
-
function _arrayLikeToArray$3(r, a) {
|
|
40234
|
-
(null == a || a > r.length) && (a = r.length);
|
|
40235
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
40236
|
-
return n;
|
|
40237
|
-
}
|
|
40238
|
-
function _iterableToArrayLimit$2(r, l) {
|
|
40239
|
-
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
40240
|
-
if (null != t) {
|
|
40241
|
-
var e,
|
|
40242
|
-
n,
|
|
40243
|
-
i,
|
|
40244
|
-
u,
|
|
40245
|
-
a = [],
|
|
40246
|
-
f = !0,
|
|
40247
|
-
o = !1;
|
|
40248
|
-
try {
|
|
40249
|
-
if (i = (t = t.call(r)).next, 0 === l) {
|
|
40250
|
-
if (Object(t) !== t) return;
|
|
40251
|
-
f = !1;
|
|
40252
|
-
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
40253
|
-
} catch (r) {
|
|
40254
|
-
o = !0, n = r;
|
|
40255
|
-
} finally {
|
|
40256
|
-
try {
|
|
40257
|
-
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
40258
|
-
} finally {
|
|
40259
|
-
if (o) throw n;
|
|
40260
|
-
}
|
|
40261
|
-
}
|
|
40262
|
-
return a;
|
|
40263
|
-
}
|
|
40264
|
-
}
|
|
40265
|
-
function _arrayWithHoles$2(r) {
|
|
40266
|
-
if (Array.isArray(r)) return r;
|
|
40267
|
-
}
|
|
40268
|
-
function _classCallCheck(a, n) {
|
|
40269
|
-
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
40270
|
-
}
|
|
40271
|
-
function _defineProperties(e, r) {
|
|
40272
|
-
for (var t = 0; t < r.length; t++) {
|
|
40273
|
-
var o = r[t];
|
|
40274
|
-
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey$2(o.key), o);
|
|
40275
|
-
}
|
|
40276
|
-
}
|
|
40277
|
-
function _createClass(e, r, t) {
|
|
40278
|
-
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
40279
|
-
writable: !1
|
|
40280
|
-
}), e;
|
|
40281
|
-
}
|
|
40282
|
-
function _toPropertyKey$2(t) {
|
|
40283
|
-
var i = _toPrimitive$2(t, "string");
|
|
40284
|
-
return "symbol" == _typeof$2(i) ? i : i + "";
|
|
40285
|
-
}
|
|
40286
|
-
function _toPrimitive$2(t, r) {
|
|
40287
|
-
if ("object" != _typeof$2(t) || !t) return t;
|
|
40288
|
-
var e = t[Symbol.toPrimitive];
|
|
40289
|
-
if (void 0 !== e) {
|
|
40290
|
-
var i = e.call(t, r || "default");
|
|
40291
|
-
if ("object" != _typeof$2(i)) return i;
|
|
40292
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
40293
|
-
}
|
|
40294
|
-
return ("string" === r ? String : Number)(t);
|
|
40295
|
-
}
|
|
40296
|
-
function _callSuper(t, o, e) {
|
|
40297
|
-
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
40298
|
-
}
|
|
40299
|
-
function _possibleConstructorReturn(t, e) {
|
|
40300
|
-
if (e && ("object" == _typeof$2(e) || "function" == typeof e)) return e;
|
|
40301
|
-
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
40302
|
-
return _assertThisInitialized(t);
|
|
40303
|
-
}
|
|
40304
|
-
function _assertThisInitialized(e) {
|
|
40305
|
-
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
40306
|
-
return e;
|
|
40307
|
-
}
|
|
40308
|
-
function _isNativeReflectConstruct() {
|
|
40309
|
-
try {
|
|
40310
|
-
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
40311
|
-
} catch (t) {}
|
|
40312
|
-
return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
|
|
40313
|
-
return !!t;
|
|
40314
|
-
})();
|
|
40315
|
-
}
|
|
40316
|
-
function _getPrototypeOf(t) {
|
|
40317
|
-
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
40318
|
-
return t.__proto__ || Object.getPrototypeOf(t);
|
|
40319
|
-
}, _getPrototypeOf(t);
|
|
40320
|
-
}
|
|
40321
|
-
function _inherits(t, e) {
|
|
40322
|
-
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
40323
|
-
t.prototype = Object.create(e && e.prototype, {
|
|
40324
|
-
constructor: {
|
|
40325
|
-
value: t,
|
|
40326
|
-
writable: !0,
|
|
40327
|
-
configurable: !0
|
|
40328
|
-
}
|
|
40329
|
-
}), Object.defineProperty(t, "prototype", {
|
|
40330
|
-
writable: !1
|
|
40331
|
-
}), e && _setPrototypeOf(t, e);
|
|
40332
|
-
}
|
|
40333
|
-
function _setPrototypeOf(t, e) {
|
|
40334
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
40335
|
-
return t.__proto__ = e, t;
|
|
40336
|
-
}, _setPrototypeOf(t, e);
|
|
40337
|
-
}
|
|
39978
|
+
function _typeof$2(o) { "@babel/helpers - typeof"; return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$2(o); }
|
|
39979
|
+
function _slicedToArray$2(r, e) { return _arrayWithHoles$2(r) || _iterableToArrayLimit$2(r, e) || _unsupportedIterableToArray$3(r, e) || _nonIterableRest$2(); }
|
|
39980
|
+
function _nonIterableRest$2() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
39981
|
+
function _unsupportedIterableToArray$3(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$3(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$3(r, a) : void 0; } }
|
|
39982
|
+
function _arrayLikeToArray$3(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
39983
|
+
function _iterableToArrayLimit$2(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
39984
|
+
function _arrayWithHoles$2(r) { if (Array.isArray(r)) return r; }
|
|
39985
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
39986
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey$2(o.key), o); } }
|
|
39987
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
39988
|
+
function _toPropertyKey$2(t) { var i = _toPrimitive$2(t, "string"); return "symbol" == _typeof$2(i) ? i : i + ""; }
|
|
39989
|
+
function _toPrimitive$2(t, r) { if ("object" != _typeof$2(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$2(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
39990
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
39991
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof$2(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
39992
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
39993
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
39994
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
39995
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
39996
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
40338
39997
|
|
|
40339
39998
|
/**
|
|
40340
39999
|
* @class Parser
|