@bino-bi/bn-template-engine 1.0.0-alpha.11 → 1.0.0-alpha.13
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/bn-template-engine/bn-template-engine.esm.js +1 -1
- package/dist/bn-template-engine/p-3c827826.entry.js +1 -0
- package/dist/bn-template-engine/p-46699464.entry.js +1 -0
- package/dist/bn-template-engine/{p-e783733e.entry.js → p-52097456.entry.js} +1 -1
- package/dist/bn-template-engine/p-637e3b8f.entry.js +1 -0
- package/dist/bn-template-engine/{p-c2cbb8ea.entry.js → p-67eae33e.entry.js} +1 -1
- package/dist/bn-template-engine/{p-fdb3e99a.entry.js → p-82023539.entry.js} +1 -1
- package/dist/bn-template-engine/p-BVFHvEXF.js +1 -0
- package/dist/bn-template-engine/p-BjBz5cSL.js +1 -0
- package/dist/bn-template-engine/p-CQnZV3JG.js +1 -0
- package/dist/bn-template-engine/p-DHheVOfP.js +1 -0
- package/dist/bn-template-engine/{p-e94b4e31.entry.js → p-ab3ea8cf.entry.js} +1 -1
- package/dist/cjs/bn-asset_21.cjs.entry.js +576 -730
- package/dist/cjs/bn-grid.cjs.entry.js +2 -2
- package/dist/cjs/bn-image.cjs.entry.js +2 -2
- package/dist/cjs/bn-internationalization.cjs.entry.js +2 -2
- package/dist/cjs/bn-template-engine.cjs.js +1 -1
- package/dist/cjs/bn-text.cjs.entry.js +3 -3
- package/dist/cjs/bn-tree.cjs.entry.js +2 -2
- package/dist/cjs/context-protocol-Op7uUwN3.js +9214 -0
- package/dist/cjs/editor-companion.cjs.entry.js +13 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{scaling-eyzCrFB8.js → scaling-57N4Cxb_.js} +44 -40
- package/dist/cjs/{withBodyObserver-D7BKWN2N.js → withBodyObserver-BKUE_ypL.js} +12 -7
- package/dist/cjs/withStyled-C2kmGAK3.js +1405 -0
- package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +11 -6
- package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +50 -22
- package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +51 -48
- package/dist/collection/components/bn-chart-structure/utils/model/StructureChartComponentConfig.js +5 -4
- package/dist/collection/components/bn-chart-time/bn-chart-time.js +11 -6
- package/dist/collection/components/bn-chart-time/ibcs-chart-time.js +47 -22
- package/dist/collection/components/bn-chart-time/utils/TimeChart.js +76 -60
- package/dist/collection/components/bn-chart-time/utils/model/TimeChartComponentConfig.js +5 -4
- package/dist/collection/components/bn-chart-time/utils/model/TimeChartDataRow.js +2 -0
- package/dist/collection/components/bn-dataset/bn-dataset.js +214 -23
- package/dist/collection/components/bn-datasource/bn-datasource.js +27 -9
- package/dist/collection/components/bn-table/bn-table.js +13 -5
- package/dist/collection/components/bn-table/ibcs-table.js +52 -25
- package/dist/collection/components/bn-table/utils/Table.js +27 -21
- package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +2 -2
- package/dist/collection/components/bn-table/utils/helper/DataQuery.js +52 -43
- package/dist/collection/components/bn-table/utils/helper/QueryGroup.js +4 -9
- package/dist/collection/components/bn-table/utils/model/TableComponentConfig.js +5 -4
- package/dist/collection/components/editor-companion/editor-companion.js +12 -5
- package/dist/collection/context/scopedDb.js +113 -0
- package/dist/collection/stores/createScopedStores.js +3 -4
- package/dist/collection/utils/dataAnalyzer.js +14 -8
- package/dist/collection/utils/withBodyObserver.js +12 -7
- package/dist/collection/utils/withDataset.js +43 -39
- package/dist/collection/utils/withDatasource.js +28 -18
- package/dist/components/DataFormatDigits.js +1 -1
- package/dist/components/DateStringFactory.js +1 -1
- package/dist/components/Order.js +1 -1
- package/dist/components/SVGVariancesStyleGroup.js +1 -1
- package/dist/components/bn-chart-structure.js +1 -1
- package/dist/components/bn-chart-time.js +1 -1
- package/dist/components/bn-dataset.js +1 -1
- package/dist/components/bn-datasource.js +1 -1
- package/dist/components/bn-table.js +1 -1
- package/dist/components/bn-title2.js +1 -1
- package/dist/components/context-protocol.js +1 -1
- package/dist/components/editor-companion.js +1 -1
- package/dist/components/ibcs-chart-structure2.js +1 -1
- package/dist/components/ibcs-chart-time2.js +1 -1
- package/dist/components/ibcs-table2.js +1 -1
- package/dist/components/ibcs-title2.js +1 -1
- package/dist/components/ibcsRuleSet.js +1 -1
- package/dist/components/luxon.js +1 -0
- package/dist/components/scaling.js +1 -1
- package/dist/components/withBodyObserver.js +1 -1
- package/dist/esm/bn-asset_21.entry.js +571 -725
- package/dist/esm/bn-grid.entry.js +2 -2
- package/dist/esm/bn-image.entry.js +2 -2
- package/dist/esm/bn-internationalization.entry.js +2 -2
- package/dist/esm/bn-template-engine.js +1 -1
- package/dist/esm/bn-text.entry.js +3 -3
- package/dist/esm/bn-tree.entry.js +2 -2
- package/dist/esm/context-protocol-BDhzNbeD.js +9204 -0
- package/dist/esm/editor-companion.entry.js +13 -6
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{scaling-BzbiBnuN.js → scaling-La1Ow72h.js} +44 -40
- package/dist/esm/{withBodyObserver-AFk2wwHT.js → withBodyObserver-IokS6fHD.js} +12 -7
- package/dist/esm/withStyled-Bl9cSoRW.js +1372 -0
- package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +4 -2
- package/dist/types/components/bn-chart-structure/ibcs-chart-structure.d.ts +7 -3
- package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +11 -12
- package/dist/types/components/bn-chart-structure/utils/model/StructureChartComponentConfig.d.ts +5 -3
- package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +4 -2
- package/dist/types/components/bn-chart-time/ibcs-chart-time.d.ts +7 -3
- package/dist/types/components/bn-chart-time/utils/TimeChart.d.ts +11 -12
- package/dist/types/components/bn-chart-time/utils/model/TimeChartComponentConfig.d.ts +5 -3
- package/dist/types/components/bn-dataset/bn-dataset.d.ts +39 -5
- package/dist/types/components/bn-datasource/bn-datasource.d.ts +5 -0
- package/dist/types/components/bn-table/bn-table.d.ts +4 -2
- package/dist/types/components/bn-table/ibcs-table.d.ts +11 -3
- package/dist/types/components/bn-table/utils/Table.d.ts +8 -6
- package/dist/types/components/bn-table/utils/factories/tableDataSetFactory.d.ts +2 -2
- package/dist/types/components/bn-table/utils/helper/DataQuery.d.ts +7 -3
- package/dist/types/components/bn-table/utils/helper/QueryGroup.d.ts +4 -5
- package/dist/types/components/bn-table/utils/model/TableComponentConfig.d.ts +5 -3
- package/dist/types/components/editor-companion/editor-companion.d.ts +2 -0
- package/dist/types/components.d.ts +105 -46
- package/dist/types/context/context-protocol.d.ts +4 -3
- package/dist/types/context/scopedDb.d.ts +37 -0
- package/dist/types/stores/createScopedStores.d.ts +1 -2
- package/dist/types/utils/DateStringFactory.d.ts +1 -1
- package/dist/types/utils/dataAnalyzer.d.ts +2 -1
- package/dist/types/utils/withDataset.d.ts +6 -2
- package/dist/types/utils/withDatasource.d.ts +3 -3
- package/package.json +2 -1
- package/dist/bn-template-engine/p-095f74d7.entry.js +0 -1
- package/dist/bn-template-engine/p-14318b0d.entry.js +0 -1
- package/dist/bn-template-engine/p-2133e02b.entry.js +0 -1
- package/dist/bn-template-engine/p-7HSTE79g.js +0 -1
- package/dist/bn-template-engine/p-Bi2wx-el.js +0 -1
- package/dist/bn-template-engine/p-CWiZks2h.js +0 -1
- package/dist/bn-template-engine/p-DSXNgKLa.js +0 -1
- package/dist/cjs/context-protocol-B_jipZpJ.js +0 -665
- package/dist/cjs/withStyled-V7xz_x1c.js +0 -9535
- package/dist/collection/stores/datasets.js +0 -14
- package/dist/collection/stores/datasources.js +0 -14
- package/dist/components/_commonjsHelpers.js +0 -1
- package/dist/components/alasql.min.js +0 -1
- package/dist/esm/context-protocol-D-o_UZ33.js +0 -658
- package/dist/esm/withStyled-5RqF8WBL.js +0 -9501
- package/dist/types/stores/datasets.d.ts +0 -14
- package/dist/types/stores/datasources.d.ts +0 -14
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-CDKG4xmO.js');
|
|
4
4
|
var withHasError = require('./withHasError-Cl2gTQzA.js');
|
|
5
|
-
var contextProtocol = require('./context-protocol-
|
|
6
|
-
var withBodyObserver = require('./withBodyObserver-
|
|
7
|
-
var withStyled = require('./withStyled-
|
|
8
|
-
var scaling = require('./scaling-
|
|
5
|
+
var contextProtocol = require('./context-protocol-Op7uUwN3.js');
|
|
6
|
+
var withBodyObserver = require('./withBodyObserver-BKUE_ypL.js');
|
|
7
|
+
var withStyled = require('./withStyled-C2kmGAK3.js');
|
|
8
|
+
var scaling = require('./scaling-57N4Cxb_.js');
|
|
9
9
|
|
|
10
10
|
const bnAssetCss = () => `:host{display:none}`;
|
|
11
11
|
|
|
@@ -595,7 +595,10 @@ const Chart$1 = class Chart {
|
|
|
595
595
|
}
|
|
596
596
|
constructor(hostRef) {
|
|
597
597
|
index.registerInstance(this, hostRef);
|
|
598
|
-
|
|
598
|
+
/** Active dataset name (the last subscribed dataset to fire `onUpdate`). */
|
|
599
|
+
this.datasetName = "";
|
|
600
|
+
/** Bumped on every data update so Stencil re-renders even when the name is unchanged. */
|
|
601
|
+
this.dataVersion = 0;
|
|
599
602
|
this.datasetMeta = null;
|
|
600
603
|
this.appliedScaleFactor = 1;
|
|
601
604
|
this.layoutObserver = null;
|
|
@@ -698,8 +701,9 @@ const Chart$1 = class Chart {
|
|
|
698
701
|
this._autoScaleGuard = false;
|
|
699
702
|
withStyled.withStyled(this);
|
|
700
703
|
withHasError.withComponentStatus(this);
|
|
701
|
-
scaling.withDataset(this, (
|
|
702
|
-
this.
|
|
704
|
+
scaling.withDataset(this, (name, _data) => {
|
|
705
|
+
this.datasetName = (name === null || name === void 0 ? void 0 : name.startsWith("$")) ? name.substring(1) : name || "";
|
|
706
|
+
this.dataVersion = this.dataVersion + 1;
|
|
703
707
|
}, (_name, meta) => {
|
|
704
708
|
this.datasetMeta = meta;
|
|
705
709
|
});
|
|
@@ -1165,7 +1169,7 @@ const Chart$1 = class Chart {
|
|
|
1165
1169
|
const scenarios = this.prepareScenarios();
|
|
1166
1170
|
// Dimension stacking uses only the first scenario
|
|
1167
1171
|
const effectiveScenarios = (stackConfig === null || stackConfig === void 0 ? void 0 : stackConfig.by) === withStyled.StackBy.DIMENSIONS ? scenarios.slice(0, 1) : scenarios;
|
|
1168
|
-
return (index.h("ibcs-chart-structure", {
|
|
1172
|
+
return (index.h("ibcs-chart-structure", { tableName: this.datasetName, dataVersion: this.dataVersion, chartTitle: this.prepareChartTitle(idx), scenarios: effectiveScenarios, variances: [localScenarioString], hideCategories: this.prepareHideCategories(idx), pixelPerUnit: ppu > 0 ? ppu * effectiveFactor : 0, pixelPerPercentage: ppp > 0 ? ppp * effectiveFactor : 0, limit: this.prepareLimit(), styles: this.prepareStyle(), i18n: this.prepareI18n(), order: this.prepareOrder(), level: this.prepareLevel(), filter: this.prepareFilter(), "measure-scale": this.prepareMeasureScale(), "measure-unit": this.prepareMeasureUnit(), showMeasureScale: this.prepareShowMeasureScale(idx), stackConfig: stackConfig, parentDimensions: this.prepareDimension() }));
|
|
1169
1173
|
}
|
|
1170
1174
|
getEffectiveScaleFactor() {
|
|
1171
1175
|
const { mode, factor } = scaling.parseScaling(this.scale);
|
|
@@ -1195,7 +1199,7 @@ const Chart$1 = class Chart {
|
|
|
1195
1199
|
scenariosArray = [...scenariosArray, ...variancesArray];
|
|
1196
1200
|
}
|
|
1197
1201
|
const fontStyles = this.getFontStyles();
|
|
1198
|
-
return (index.h(index.Host, { key: '
|
|
1202
|
+
return (index.h(index.Host, { key: '0af8bafa9e2e24eda4f09a9b1f9f9dfed9a34b0b', style: fontStyles }, index.h("div", { key: 'eb8b0337984e0207783b84d90438f0d32010fd21', class: "container" }, scenariosArray.map(this.chartTemplate))));
|
|
1199
1203
|
}
|
|
1200
1204
|
get element() { return index.getElement(this); }
|
|
1201
1205
|
static get watchers() { return {
|
|
@@ -1311,12 +1315,6 @@ var QueryColumnNames;
|
|
|
1311
1315
|
QueryColumnNames["TYPE"] = "type";
|
|
1312
1316
|
})(QueryColumnNames || (QueryColumnNames = {}));
|
|
1313
1317
|
|
|
1314
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
1315
|
-
|
|
1316
|
-
function getDefaultExportFromCjs (x) {
|
|
1317
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
1318
|
-
}
|
|
1319
|
-
|
|
1320
1318
|
var lib = {};
|
|
1321
1319
|
|
|
1322
1320
|
var hasRequiredLib;
|
|
@@ -1369,7 +1367,7 @@ function requireLib () {
|
|
|
1369
1367
|
}
|
|
1370
1368
|
|
|
1371
1369
|
var libExports = requireLib();
|
|
1372
|
-
var CalculateSize = /*@__PURE__*/getDefaultExportFromCjs(libExports);
|
|
1370
|
+
var CalculateSize = /*@__PURE__*/contextProtocol.getDefaultExportFromCjs(libExports);
|
|
1373
1371
|
|
|
1374
1372
|
/**
|
|
1375
1373
|
* Number and label formatting utilities following ISO 80000-1 conventions.
|
|
@@ -1772,7 +1770,10 @@ const Chart = class {
|
|
|
1772
1770
|
}
|
|
1773
1771
|
constructor(hostRef) {
|
|
1774
1772
|
index.registerInstance(this, hostRef);
|
|
1775
|
-
|
|
1773
|
+
/** Active dataset name (the last subscribed dataset to fire `onUpdate`). */
|
|
1774
|
+
this.datasetName = "";
|
|
1775
|
+
/** Bumped on every data update so Stencil re-renders even when the name is unchanged. */
|
|
1776
|
+
this.dataVersion = 0;
|
|
1776
1777
|
this.datasetMeta = null;
|
|
1777
1778
|
this.appliedScaleFactor = 1;
|
|
1778
1779
|
this.layoutObserver = null;
|
|
@@ -1915,8 +1916,9 @@ const Chart = class {
|
|
|
1915
1916
|
this._lastObservedWidth = 0;
|
|
1916
1917
|
withStyled.withStyled(this);
|
|
1917
1918
|
withHasError.withComponentStatus(this);
|
|
1918
|
-
scaling.withDataset(this, (
|
|
1919
|
-
this.
|
|
1919
|
+
scaling.withDataset(this, (name, _data) => {
|
|
1920
|
+
this.datasetName = (name === null || name === void 0 ? void 0 : name.startsWith("$")) ? name.substring(1) : name || "";
|
|
1921
|
+
this.dataVersion = this.dataVersion + 1;
|
|
1920
1922
|
}, (_name, meta) => {
|
|
1921
1923
|
this.datasetMeta = meta;
|
|
1922
1924
|
});
|
|
@@ -2425,7 +2427,7 @@ const Chart = class {
|
|
|
2425
2427
|
const stackConfig = this.prepareStackConfig();
|
|
2426
2428
|
const scenarios = this.prepareScenarios();
|
|
2427
2429
|
const effectiveScenarios = (stackConfig === null || stackConfig === void 0 ? void 0 : stackConfig.by) === withStyled.StackBy.DIMENSIONS ? scenarios.slice(0, 1) : scenarios;
|
|
2428
|
-
return (index.h("ibcs-chart-time", {
|
|
2430
|
+
return (index.h("ibcs-chart-time", { tableName: this.datasetName, dataVersion: this.dataVersion, chartTitle: this.prepareChartTitle(idx), scenarios: effectiveScenarios, variances: [localScenarioString], hideAxisLabels: this.prepareHideAxisLabels(idx), pixelPerUnit: ppu > 0 ? ppu * effectiveFactor : 0, pixelPerPercentage: ppp > 0 ? ppp * effectiveFactor : 0, limit: this.prepareLimit(), leftSideOffsetForHorizontalSync: this.prepareLeftSideOffset(preparedI18n, preparedStyle), styles: preparedStyle, i18n: preparedI18n, order: this.prepareOrder(), level: this.prepareLevel(), dateInterval: this.prepareDateInterval(), intervalSpanLimit: this.prepareIntervalSpanLimit(), axisLabelsMode: this.prepareAxisLabelsMode(), filter: this.prepareFilter(), "measure-scale": this.prepareMeasureScale(), "measure-unit": this.prepareMeasureUnit(), showOverlayAvg: this.prepareAvg(), showOverlayMedian: this.prepareMedian(), showMeasureScale: this.prepareShowMeasureScale(idx), chartMode: this.prepareChartMode(), maxBars: this.prepareMaxBars(), stackConfig: stackConfig, lineFullWidth: this.prepareLineFullWidth(), containerWidth: fullParentWidth, parentDimensions: this.prepareDimension() }));
|
|
2429
2431
|
}
|
|
2430
2432
|
getEffectiveScaleFactor() {
|
|
2431
2433
|
const { mode, factor } = scaling.parseScaling(this.scale);
|
|
@@ -2455,7 +2457,7 @@ const Chart = class {
|
|
|
2455
2457
|
scenariosArray = [...scenariosArray, ...variancesArray];
|
|
2456
2458
|
}
|
|
2457
2459
|
const fontStyles = this.getFontStyles();
|
|
2458
|
-
return (index.h(index.Host, { key: '
|
|
2460
|
+
return (index.h(index.Host, { key: 'fbef96ebdfa241564095c6def748082bfec0e6a4', style: fontStyles }, index.h("div", { key: '77d3168f126a779db1e0fbeed2f8a220a2f36792', class: "container" }, scenariosArray.map(this.chartTemplate))));
|
|
2459
2461
|
}
|
|
2460
2462
|
get element() { return index.getElement(this); }
|
|
2461
2463
|
static get watchers() { return {
|
|
@@ -2625,9 +2627,9 @@ Context.style = bnContextCss();
|
|
|
2625
2627
|
* Mixin that subscribes a Stencil component to raw datasources.
|
|
2626
2628
|
*
|
|
2627
2629
|
* This is the simpler counterpart of {@link withDataset} -- it reads directly from
|
|
2628
|
-
* the
|
|
2629
|
-
*
|
|
2630
|
-
*
|
|
2630
|
+
* the shared alasql database via `stores.db.subscribe(name, ...)`. Primarily used
|
|
2631
|
+
* by `bn-dataset` itself to react to upstream datasource updates so it can re-fire
|
|
2632
|
+
* its own dataset notification.
|
|
2631
2633
|
*
|
|
2632
2634
|
* Watches the host element's `datasources` attribute via MutationObserver for
|
|
2633
2635
|
* dynamic rebinding at runtime.
|
|
@@ -2637,17 +2639,34 @@ Context.style = bnContextCss();
|
|
|
2637
2639
|
*/
|
|
2638
2640
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2639
2641
|
const withDatasource = (component, onUpdate) => {
|
|
2640
|
-
let
|
|
2642
|
+
let dbUnsubs = [];
|
|
2641
2643
|
let datasources = [];
|
|
2642
2644
|
let stores;
|
|
2645
|
+
const deliver = (name) => {
|
|
2646
|
+
let rows;
|
|
2647
|
+
try {
|
|
2648
|
+
rows = stores.db.db.exec(`SELECT * FROM \`${name}\``);
|
|
2649
|
+
}
|
|
2650
|
+
catch (_e) {
|
|
2651
|
+
rows = [];
|
|
2652
|
+
}
|
|
2653
|
+
onUpdate(name, rows);
|
|
2654
|
+
};
|
|
2655
|
+
const rebind = () => {
|
|
2656
|
+
dbUnsubs.forEach((fn) => fn());
|
|
2657
|
+
dbUnsubs = [];
|
|
2658
|
+
datasources.forEach((name) => {
|
|
2659
|
+
if (!name)
|
|
2660
|
+
return;
|
|
2661
|
+
dbUnsubs.push(stores.db.subscribe(name, () => deliver(name)));
|
|
2662
|
+
deliver(name);
|
|
2663
|
+
});
|
|
2664
|
+
};
|
|
2643
2665
|
const observer = new MutationObserver((mutations) => {
|
|
2644
2666
|
mutations.forEach((mutation) => {
|
|
2645
2667
|
if (mutation.attributeName === "datasources") {
|
|
2646
2668
|
datasources = (index.getElement(component).getAttribute("datasources") || "").split(",");
|
|
2647
|
-
|
|
2648
|
-
// @ts-ignore
|
|
2649
|
-
onUpdate(name, stores.datasources.get(name));
|
|
2650
|
-
});
|
|
2669
|
+
rebind();
|
|
2651
2670
|
}
|
|
2652
2671
|
});
|
|
2653
2672
|
});
|
|
@@ -2656,22 +2675,15 @@ const withDatasource = (component, onUpdate) => {
|
|
|
2656
2675
|
const element = index.getElement(component);
|
|
2657
2676
|
stores = contextProtocol.getStores(element);
|
|
2658
2677
|
datasources = (element.getAttribute("datasources") || "").split(",");
|
|
2659
|
-
|
|
2660
|
-
// @ts-ignore
|
|
2661
|
-
onUpdate(name, stores.datasources.get(name));
|
|
2662
|
-
});
|
|
2678
|
+
rebind();
|
|
2663
2679
|
observer.observe(element, { attributes: true, attributeFilter: ["datasources"] });
|
|
2664
|
-
subscription = stores.datasources.on("set", (key, newVlaue) => {
|
|
2665
|
-
if (datasources.includes(key)) {
|
|
2666
|
-
onUpdate(key, newVlaue);
|
|
2667
|
-
}
|
|
2668
|
-
});
|
|
2669
2680
|
withHasError.runIfExisits(connectedCallback, component);
|
|
2670
2681
|
};
|
|
2671
2682
|
const disconnectedCallback = component["disconnectedCallback"];
|
|
2672
2683
|
component["disconnectedCallback"] = () => {
|
|
2673
2684
|
observer.disconnect();
|
|
2674
|
-
|
|
2685
|
+
dbUnsubs.forEach((fn) => fn());
|
|
2686
|
+
dbUnsubs = [];
|
|
2675
2687
|
contextProtocol.clearStoresCache(index.getElement(component));
|
|
2676
2688
|
withHasError.runIfExisits(disconnectedCallback, component);
|
|
2677
2689
|
};
|
|
@@ -2815,307 +2827,6 @@ function calculateDatasetMeta(data) {
|
|
|
2815
2827
|
};
|
|
2816
2828
|
}
|
|
2817
2829
|
|
|
2818
|
-
var alasql_min$1 = {exports: {}};
|
|
2819
|
-
|
|
2820
|
-
var alasql_min = alasql_min$1.exports;
|
|
2821
|
-
|
|
2822
|
-
var hasRequiredAlasql_min;
|
|
2823
|
-
|
|
2824
|
-
function requireAlasql_min () {
|
|
2825
|
-
if (hasRequiredAlasql_min) return alasql_min$1.exports;
|
|
2826
|
-
hasRequiredAlasql_min = 1;
|
|
2827
|
-
(function (module, exports) {
|
|
2828
|
-
/*
|
|
2829
|
-
@module alasql
|
|
2830
|
-
@version 4.16.0
|
|
2831
|
-
|
|
2832
|
-
AlaSQL - JavaScript SQL database
|
|
2833
|
-
© 2014-2025 Andrey Gershun & Mathias Wulff
|
|
2834
|
-
|
|
2835
|
-
@license
|
|
2836
|
-
The MIT License (MIT)
|
|
2837
|
-
|
|
2838
|
-
Copyright 2014-2025 Andrey Gershun (agershun@gmail.com) & Mathias Wulff (m@rawu.dk)
|
|
2839
|
-
|
|
2840
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2841
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
2842
|
-
in the Software without restriction, including without limitation the rights
|
|
2843
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
2844
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
2845
|
-
furnished to do so, subject to the following conditions:
|
|
2846
|
-
|
|
2847
|
-
The above copyright notice and this permission notice shall be included in all
|
|
2848
|
-
copies or substantial portions of the Software.
|
|
2849
|
-
|
|
2850
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
2851
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
2852
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
2853
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
2854
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
2855
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
2856
|
-
SOFTWARE.
|
|
2857
|
-
*/(function(c,R3){module.exports=R3();})(alasql_min,function(){let c=function(e,n,t,r){if(n=n||[],typeof importScripts!="function"&&c.webworker){var i=c.lastid++;c.buffer[i]=t,c.webworker.postMessage({id:i,sql:e,params:n});return}return arguments.length===0?new S.Select({columns:[new S.Column({columnid:"*"})],from:[new S.ParamValue({param:0})]}):arguments.length===1&&e.constructor===Array?c.promise(e):(typeof n=="function"&&(r=t,t=n,n=[]),typeof n!="object"&&(n=[n]),typeof e=="string"&&e[0]==="#"&&typeof document=="object"?e=document.querySelector(e).textContent:typeof e=="object"&&e instanceof HTMLElement?e=e.textContent:typeof e=="function"&&(e=e.toString(),e=(/\/\*([\S\s]+)\*\//m.exec(e)||["","Function given as SQL. Plese Provide SQL string or have a /* ... */ syle comment with SQL in the function."])[1]),c.exec(e,n,t,r))};c.version="4.16.0",c.build="develop-42f0e181",c.debug=void 0;var R3=function(){return null},Ns="",nt=(function(){var e=function(V3,ve,ke,Te){for(ke=ke||{},Te=V3.length;Te--;ke[V3[Te]]=ve);return ke},n=[2,17],t=[1,112],r=[1,106],i=[1,107],s=[1,108],a=[1,109],o=[1,110],f=[1,111],m=[1,6],E=[1,42],p=[1,80],h=[1,103],g=[1,77],A=[1,97],v=[1,96],T=[1,69],O=[1,105],b=[1,86],C1=[1,64],C=[1,71],a1=[1,85],r1=[1,66],j=[1,70],i1=[1,68],k1=[1,61],W1=[1,74],z1=[1,62],R=[1,67],M1=[1,84],ee=[1,78],_1=[1,87],X1=[1,88],Se=[1,99],Ie=[1,82],Xe=[1,83],Ve=[1,81],we=[1,89],Ge=[1,90],Me=[1,91],Ze=[1,92],Re=[1,93],Oe=[1,94],Pe=[1,95],He=[1,101],o3=[1,65],v3=[1,79],k3=[1,72],I3=[1,100],w3=[1,63],_3=[1,73],gi=[1,116],Ei=[1,115],U3=[14,339,639,798],B=[14,339,343,639,798],V=[1,123],$e=[1,125],J=[1,124],M=[1,126],U=[1,127],F=[1,128],P=[1,129],mi=[139,388,447],vi=[1,137],Si=[1,136],Ti=[1,144],R1=[1,174],L=[1,189],y=[1,192],o1=[1,185],w=[1,195],n1=[1,199],l1=[1,170],_=[1,196],u1=[1,181],f1=[1,183],c1=[1,188],x=[1,197],h1=[1,186],H=[1,214],Y=[1,215],d1=[1,187],p1=[1,176],b1=[1,177],g1=[1,207],E1=[1,202],m1=[1,203],v1=[1,179],W=[1,208],X=[1,209],K=[1,210],q=[1,211],Q=[1,212],z=[1,213],Z=[1,216],$=[1,217],e1=[1,190],t1=[1,191],G=[1,193],s1=[1,194],S1=[1,200],T1=[1,206],D=[1,198],A1=[1,201],N1=[1,184],O1=[1,182],I=[1,205],k=[1,218],Et=[2,4,5,6,7,8,9,152,161,190,335],Kt=[2,499],qt=[1,222],Ar=[1,227],z3=[1,236],Z3=[1,234],Qt=[14,76,83,103,108,127,137,171,177,178,192,207,252,271,273,339,343,503,639,798],Ai=[1,241],it=[14,76,83,127,271,273,339,343,503,639,798],on=[2,248],ln=[1,244],un=[1,246],fn=[1,245],Ni=[2,4,5,6,7,8,9,14,76,81,82,83,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,192,194,196,207,266,267,304,313,314,315,316,317,318,319,320,339,343,457,461,503,639,798],he=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Ye=[1,273],cn=[1,280],hn=[1,281],F3=[1,286],Oi=[1,291],P3=[1,296],G3=[1,295],zt=[2,4,5,6,7,8,9,14,76,82,83,103,108,116,127,137,140,141,146,152,154,158,161,163,165,171,177,178,188,189,190,192,207,229,252,266,267,271,273,281,292,293,294,298,299,301,304,313,314,315,316,317,318,319,320,322,323,324,325,326,327,328,329,330,331,332,335,336,339,343,345,350,457,461,503,639,798],Nr=[2,172],Or=[1,307],Ci=[14,78,83,339,343,466,639,798],N=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,202,207,215,217,242,243,244,245,246,247,248,249,250,251,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,330,333,335,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,378,379,391,403,404,407,408,423,426,433,437,438,439,440,441,442,443,445,446,454,455,457,461,463,466,471,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,552,553,554,555,639,798],Ri=[2,4,5,6,7,8,9,14,57,76,82,96,133,155,165,198,294,295,322,339,368,372,373,433,437,438,441,443,445,446,454,455,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,545,546,555,639,798],st=[1,595],ki=[1,597],dn=[1,598],x3=[2,4,5,6,7,8,9],Cr=[2,531],Rr=[1,604],at=[1,615],y3=[1,618],D3=[1,619],Ii=[14,82,83,96,141,146,155,198,329,339,343,509,639,798],l3=[14,78,339,343,639,798],kr=[2,602],Ir=[1,637],wr=[2,4,5,6,7,8,9,165],le=[1,675],Z1=[1,647],I1=[1,681],w1=[1,682],V1=[1,655],wi=[1,666],U1=[1,653],D1=[1,661],F1=[1,654],ue=[1,662],fe=[1,664],J1=[1,656],j1=[1,657],ce=[1,676],Ee=[1,673],me=[1,674],G1=[1,650],P1=[1,652],K1=[1,644],L1=[1,645],q1=[1,646],Q1=[1,648],x1=[1,649],y1=[1,651],H1=[1,658],Y1=[1,659],te=[1,663],re=[1,665],ne=[1,667],ie=[1,668],se=[1,669],ae=[1,670],oe=[1,671],de=[1,677],pe=[1,678],$1=[1,679],ge=[1,680],_i=[1,690],xi=[1,687],_r=[2,4,5,6,7,8,9,14,57,76,78,81,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],pn=[2,298],Di=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Li=[2,296],Vi=[2,297],t2=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,250,251,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,330,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,378,391,403,404,407,408,433,437,438,441,443,445,446,454,455,457,461,463,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Mi=[2,380],mt=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,250,251,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,330,333,335,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,378,379,391,403,404,407,408,433,437,438,441,443,445,446,454,455,457,461,463,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],bn=[1,706],xr=[1,716],u3=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,250,251,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,463,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Zt=[1,733],Qe=[1,735],ze=[1,736],$t=[1,726],Ui=[1,744],Fi=[1,743],Dr=[2,4,5,6,7,8,9,14,76,78,83,103,108,127,137,171,177,178,215,217,242,243,244,245,246,247,248,249,250,251,252,271,273,339,343,503,639,798],xe=[14,76,78,83,103,108,127,137,171,177,178,215,217,242,243,244,245,246,247,248,249,250,251,252,271,273,339,343,503,639,798],S3=[1,760],Pi=[2,203],Gi=[1,769],ot=[14,76,83,103,108,127,137,171,177,178,192,252,271,273,339,343,503,639,798],gn=[2,173],En=[1,772],yi=[2,4,5,6,7,8,9,121,229,281],mn=[14,76,83,271,273,339,343,503,639,798],Bi=[2,260],Ji=[1,776],$3=[82,198],u2=[1,795],f2=[1,814],c2=[1,794],h2=[1,793],d2=[1,788],p2=[1,789],b2=[1,791],g2=[1,792],E2=[1,796],m2=[1,797],v2=[1,798],S2=[1,799],T2=[1,800],A2=[1,801],N2=[1,802],O2=[1,803],C2=[1,804],R2=[1,805],k2=[1,806],I2=[1,807],w2=[1,808],_2=[1,809],x2=[1,810],D2=[1,811],L2=[1,813],V2=[1,815],M2=[1,816],U2=[1,817],F2=[1,818],P2=[1,819],G2=[1,820],y2=[1,821],B2=[1,824],J2=[1,825],j2=[1,826],H2=[1,827],Y2=[1,828],W2=[1,829],X2=[1,830],K2=[1,831],q2=[1,832],Q2=[1,833],z2=[1,835],Z2=[1,836],$2=[1,834],vt=[78,82,96,198],ji=[14,82,96,137,152,154,155,158,161,190,198,335,339,343,378,379,457,461,503,639,798],De=[14,78,83,163,196,250,330,339,343,378,391,403,404,407,408,639,798],e3=[1,855],Hi=[14,78,83,333,339,343,639,798],be=[1,856],Yi=[1,863],Wi=[1,864],vn=[1,868],ye=[14,78,83,339,343,639,798],lt=[2,4,5,6,7,8,9,82,140,141,146,152,154,158,161,163,165,188,189,190,229,266,267,281,292,293,294,298,299,301,304,313,314,315,316,317,318,319,320,322,323,324,325,326,327,328,329,330,331,332,335,336,345,350,457,461],St=[14,76,83,103,108,116,127,137,171,177,178,192,207,252,271,273,339,343,503,639,798],ut=[2,4,5,6,7,8,9,14,76,82,83,103,108,116,127,137,140,141,146,152,154,158,161,163,165,171,173,177,178,188,189,190,192,194,196,204,207,229,252,266,267,271,273,281,292,293,294,298,299,301,304,313,314,315,316,317,318,319,320,322,323,324,325,326,327,328,329,330,331,332,335,336,339,343,345,350,457,461,503,639,798],Lr=[2,4,5,6,7,8,9,141,329],Xi=[1,905],Ki=[14,78,81,83,339,343,639,798],Sn=[2,780],Vr=[14,78,81,83,141,148,150,154,161,339,343,457,461,639,798],qi=[2,1235],Mr=[14,78,81,83,148,150,154,161,339,343,457,461,639,798],O3=[14,78,81,83,148,150,154,339,343,457,461,639,798],Qi=[14,78,83,148,150,339,343,639,798],Tn=[14,82,83,96,141,155,198,329,339,343,509,639,798],Tt=[368,372,373],zi=[2,806],Zi=[1,930],$i=[1,931],e4=[1,932],t4=[1,933],At=[1,942],Nt=[1,941],Ke=[2,759],qe=[1,945],ft=[173,175,367],r4=[2,465],n4=[1,999],i4=[2,4,5,6,7,8,9,82,140,165,293,322,323,324,325,326],s4=[1,1017],a4=[1,1016],Ur=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,127,131,133,137,138,139,140,141,143,144,146,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,346,347,348,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],An=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],o4=[2,396],l4=[1,1028],Nn=[339,341,343],u4=[78,333],C3=[78,333,463],f4=[1,1036],c4=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,463,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],et=[78,463],ct=[1,1055],ht=[1,1054],B3=[1,1062],Ot=[14,76,83,103,108,127,137,171,177,178,252,271,273,339,343,503,639,798],h4=[2,183],d4=[1,1075],p4=[1,1085],f3=[14,76,83,339,343,503,639,798],b4=[2,271],g4=[1,1088],E4=[1,1089],t3=[1,1098],r3=[1,1099],n3=[1,1100],Ae=[2,4,5,6,7,8,9,14,76,78,81,82,83,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,207,266,267,304,313,314,315,316,317,318,319,320,339,343,457,461,503,639,798],Ct=[1,1153],Rt=[1,1152],m4=[1,1167],v4=[1,1166],kt=[1,1174],J3=[14,76,78,83,103,108,116,127,137,171,177,178,192,207,252,271,273,339,343,503,639,798],j3=[14,76,83,127,171,177,178,271,273,339,343,503,639,798],tt=[2,83],er=[2,345],tr=[1,1192],On=[1,1208],S4=[14,82,83,96,155,198,339,343,509,639,798],T4=[1,1228],A4=[1,1227],N4=[1,1226],It=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,250,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,330,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,378,391,403,404,407,408,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],O4=[1,1243],Fr=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,127,131,133,137,138,139,140,141,143,144,146,148,149,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,346,347,348,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],C4=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,127,131,133,137,138,139,140,141,143,144,146,148,149,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,346,348,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Cn=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,127,131,133,137,138,139,140,141,142,143,144,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,346,347,348,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Pr=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,127,131,133,137,138,139,140,141,143,144,146,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,346,347,348,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],L3=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,127,131,133,137,138,139,140,141,143,144,146,148,149,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,347,353,354,355,356,357,358,359,363,364,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],R4=[2,427],Rn=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,116,127,131,137,138,139,140,141,143,144,146,152,154,155,157,158,159,161,165,171,173,175,177,178,179,180,181,182,184,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,347,363,364,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],k4=[2,317],kn=[9,83],I4=[2,349],w4=[1,1261],_4=[2,293],wt=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,463,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Ce=[14,83,339,343,639,798],c3=[1,1287],x4=[14,82,83,152,154,161,190,335,339,343,457,461,503,639,798],_t=[14,78,83,339,341,343,503,639,798],D4=[1,1305],L4=[1,1308],V4=[2,1143],T3=[14,76,83,127,137,171,177,178,252,271,273,339,343,503,639,798],M4=[1,1314],U4=[1,1315],Gr=[14,76,78,83,103,108,127,137,171,177,178,192,207,252,271,273,339,343,503,639,798],s2=[2,4,5,6,7,8,9,76,81,82,83,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,194,196,266,267,304,313,314,315,316,317,318,319,320,457,461],H3=[2,4,5,6,7,8,9,76,78,81,82,83,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,194,196,266,267,304,313,314,315,316,317,318,319,320,457,461],xt=[2,1137],F4=[2,4,5,6,7,8,9,76,78,81,82,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,194,196,266,267,304,313,314,315,316,317,318,319,320,457,461],Y3=[1,1366],a2=[14,76,78,83,103,108,127,137,171,177,178,215,217,242,243,244,245,246,247,248,249,252,271,273,339,343,503,639,798],P4=[2,515],rr=[1,1369],yr=[14,78,83,137,339,341,343,503,639,798],nr=[124,125,133],In=[2,619],wn=[1,1399],G4=[81,148],y4=[2,766],B4=[1,1416],J4=[1,1417],_n=[2,4,5,6,7,8,9,14,57,76,81,82,96,133,155,165,198,250,294,295,322,339,343,368,372,373,433,437,438,441,443,445,446,454,455,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,545,546,555,639,798],j4=[1,1446],H4=[2,351],xn=[1,1463],r2=[78,83],Dn=[1,1472],n2=[14,339,341,343,503,639,798],Ln=[14,76,83,127,171,177,178,252,271,273,339,343,503,639,798],Y4=[2,234],W4=[1,1482],Vn=[1,1486],Br=[1,1490],Jr=[1,1491],jr=[1,1493],ir=[1,1494],sr=[1,1495],ar=[1,1496],or=[1,1497],lr=[1,1498],ur=[1,1499],fr=[1,1500],dt=[1,1507],W3=[9,14,76,78,83,271,273,339,343,503,639,798],Dt=[1,1531],Mn=[83,127],X4=[2,236],K4=[1,1627],q4=[1,1643],Q4=[1,1645],p3=[2,4,5,6,7,8,9,82,152,154,161,165,190,293,322,323,324,325,326,335,457,461],z4=[1,1684],Z4=[1,1686],$4=[1,1687],es=[1,1683],ts=[1,1682],rs=[1,1681],Un=[1,1688],ns=[1,1678],is=[1,1679],ss=[1,1680],as=[1,1710],Fn=[2,4,5,6,7,8,9,14,57,76,82,96,133,155,165,198,294,295,322,339,343,368,372,373,433,437,438,441,443,445,446,454,455,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,545,546,555,639,798],Pn=[1,1733],Gn=[1,1732],Lt=[1,1788],Vt=[1,1789],Mt=[1,1787],os=[1,1803],ls=[1,1805],us=[1,1802],fs=[1,1804],Hr=[196,202,403,404,407],yn=[2,543],Bn=[1,1810],cr=[1,1827],cs=[1,1849],hr=[1,1856],Ut=[14,76,78,83,127,171,177,178,259,271,273,339,343,503,639,798],Ft=[4,14,269,339,343,378,391,639,798],Jn=[2,246],jn=[1,1893],hs=[14,76,83,339,343,452,503,639,798],Yr=[14,78,83,163,196,330,339,343,378,391,403,404,407,408,639,798],Hn=[2,549],Yn=[1,1909],ds=[1,1959],ps=[1,1958],bs=[1,1980],gs=[1,1991],Es=[1,1990],ms=[1,1992],vs=[1,1993],Wr=[1,2e3],Xr=[1,2017],Wn=[14,78,83,250,339,343,639,798],Kr={trace:function(){},yy:{},symbols_:{error:2,Literal:3,LITERAL:4,BRALITERAL:5,KEY:6,OPEN:7,CLOSE:8,SEPARATOR:9,NonReserved:10,LiteralWithSpaces:11,main:12,Statements:13,EOF:14,Statements_group0:15,AStatement:16,ExplainStatement:17,EXPLAIN:18,QUERY:19,PLAN:20,Statement:21,AlterTable:22,AttachDatabase:23,Call:24,CreateDatabase:25,CreateIndex:26,CreateGraph:27,CreateTable:28,CreateView:29,CreateEdge:30,CreateVertex:31,Declare:32,Delete:33,DetachDatabase:34,DropDatabase:35,DropIndex:36,DropTable:37,DropView:38,If:39,Insert:40,Merge:41,Reindex:42,RenameTable:43,Select:44,ShowCreateTable:45,ShowColumns:46,ShowDatabases:47,ShowIndex:48,ShowTables:49,TruncateTable:50,WithSelect:51,CreateTrigger:52,DropTrigger:53,BeginTransaction:54,CommitTransaction:55,RollbackTransaction:56,EndTransaction:57,UseDatabase:58,Update:59,JavaScript:60,Source:61,Assert:62,While:63,Continue:64,Break:65,BeginEnd:66,Print:67,Require:68,SetVariable:69,ExpressionStatement:70,AddRule:71,Query:72,Echo:73,CreateFunction:74,CreateAggregate:75,WITH:76,WithTablesList:77,COMMA:78,WithTable:79,RECURSIVE:80,AS:81,LPAR:82,RPAR:83,ColumnsList:84,SelectClause:85,Select_option0:86,IntoClause:87,FromClause:88,Select_option1:89,WhereClause:90,GroupClause:91,UnionClause:92,OrderClause:93,LimitClause:94,ParenthesizedSelect:95,SEARCH:96,Select_repetition0:97,Select_option2:98,SelectWithoutOrderOrLimit:99,SelectWithoutOrderOrLimit_option0:100,SelectWithoutOrderOrLimit_option1:101,PivotClause:102,PIVOT:103,Expression:104,FOR:105,PivotClause_option0:106,PivotClause_option1:107,UNPIVOT:108,IN:109,PivotClause_option2:110,PivotClause2:111,AsList:112,AsLiteral:113,AsPart:114,RemoveClause:115,REMOVE:116,RemoveClause_option0:117,RemoveColumnsList:118,RemoveColumn:119,Column:120,LIKE:121,StringValue:122,ArrowDot:123,ARROW:124,DOT:125,SearchSelector:126,ORDER:127,BY:128,OrderExpressionsList:129,SearchSelector_option0:130,DOTDOT:131,CARET:132,EQ:133,SearchSelector_repetition_plus0:134,SearchSelector_repetition_plus1:135,SearchSelector_option1:136,WHERE:137,OF:138,CLASS:139,NUMBER:140,STRING:141,SLASH:142,VERTEX:143,EDGE:144,EXCLAMATION:145,SHARP:146,MODULO:147,GT:148,LT:149,GTGT:150,LTLT:151,DOLLAR:152,Json:153,AT:154,SET:155,SetColumnsList:156,TO:157,VALUE:158,ROW:159,ExprList:160,COLON:161,PlusStar:162,NOT:163,SearchSelector_repetition2:164,IF:165,SearchSelector_repetition3:166,Aggregator:167,SearchSelector_repetition4:168,SearchSelector_group0:169,SearchSelector_repetition5:170,UNION:171,SearchSelectorList:172,ALL:173,SearchSelector_repetition6:174,ANY:175,SearchSelector_repetition7:176,INTERSECT:177,EXCEPT:178,AND:179,OR:180,PATH:181,RETURN:182,ResultColumns:183,REPEAT:184,SearchSelector_repetition8:185,SearchSelectorList_repetition0:186,SearchSelectorList_repetition1:187,PLUS:188,STAR:189,QUESTION:190,SearchFrom:191,FROM:192,SelectModifier:193,DISTINCT:194,TopClause:195,UNIQUE:196,SelectClause_option0:197,SELECT:198,COLUMN:199,MATRIX:200,TEXTSTRING:201,INDEX:202,RECORDSET:203,TOP:204,NumValue:205,TopClause_option0:206,INTO:207,Table:208,FuncValue:209,ParamValue:210,VarValue:211,FromTablesList:212,JoinTablesList:213,ApplyClause:214,CROSS:215,APPLY:216,OUTER:217,FromTable:218,FromTable_option0:219,FromTable_option1:220,FromTable_option2:221,FromTable_option3:222,INDEXED:223,FromTable_option4:224,FromTable_option5:225,FromTable_option6:226,FromString:227,FromTable_option7:228,INSERTED:229,FromTableAlias:230,TargetTable:231,JoinTable:232,JoinMode:233,JoinTableAs:234,OnClause:235,JoinTableAs_option0:236,JoinTableAs_option1:237,JoinTableAs_option2:238,JoinTableAs_option3:239,JoinTableAs_option4:240,JoinModeMode:241,NATURAL:242,JOIN:243,INNER:244,LEFT:245,RIGHT:246,FULL:247,SEMI:248,ANTI:249,ON:250,USING:251,GROUP:252,GroupExpressionsList:253,HavingClause:254,ROLLUP:255,CUBE:256,GroupExpression:257,GROUPING:258,HAVING:259,UnionOp:260,UnionableSelect:261,CORRESPONDING:262,OrderExpression:263,NullsOrder:264,NULLS:265,FIRST:266,LAST:267,DIRECTION:268,COLLATE:269,NOCASE:270,LIMIT:271,OffsetClause:272,OFFSET:273,LimitClause_option0:274,FETCH:275,LimitClause_option1:276,LimitClause_option2:277,LimitClause_option3:278,ResultColumn:279,Star:280,DELETED:281,AggrValue:282,Op:283,LogicValue:284,NullValue:285,ExistsValue:286,CaseValue:287,CastClause:288,ArrayValue:289,NewClause:290,Expression_group0:291,CURRENT_TIMESTAMP:292,CURRENT_DATE:293,JAVASCRIPT:294,CREATE:295,FUNCTION:296,AGGREGATE:297,NEW:298,CAST:299,ColumnType:300,CONVERT:301,PrimitiveValue:302,OverClause:303,GROUP_CONCAT:304,GroupConcatOrderClause:305,GroupConcatSeparatorClause:306,OVER:307,OverClause_option0:308,OverClause_option1:309,OverPartitionClause:310,PARTITION:311,OverOrderByClause:312,SUM:313,TOTAL:314,COUNT:315,MIN:316,MAX:317,AVG:318,AGGR:319,ARRAY:320,FuncValue_option0:321,REPLACE:322,DATEADD:323,DATEDIFF:324,TIMESTAMPDIFF:325,INTERVAL:326,TRUE:327,FALSE:328,NSTRING:329,NULL:330,EXISTS:331,ARRAYLBRA:332,RBRA:333,ParamValue_group0:334,BRAQUESTION:335,CASE:336,WhensList:337,ElseClause:338,END:339,When:340,WHEN:341,THEN:342,ELSE:343,REGEXP:344,TILDA:345,GLOB:346,ESCAPE:347,NOT_LIKE:348,BARBAR:349,MINUS:350,AMPERSAND:351,BAR:352,GE:353,LE:354,EQEQ:355,EQEQEQ:356,NE:357,NEEQEQ:358,NEEQEQEQ:359,CondOp:360,AllSome:361,ColFunc:362,BETWEEN:363,NOT_BETWEEN:364,IS:365,DOUBLECOLON:366,SOME:367,UPDATE:368,OutputClause:369,SetColumn:370,SetColumn_group0:371,DELETE:372,INSERT:373,Into:374,Values:375,ValuesListsList:376,IGNORE:377,DEFAULT:378,VALUES:379,ValuesList:380,Value:381,DateValue:382,TemporaryClause:383,TableClass:384,IfNotExists:385,CreateTableDefClause:386,CreateTableOptionsClause:387,TABLE:388,CreateTableOptions:389,CreateTableOption:390,IDENTITY:391,TEMP:392,ColumnDefsList:393,ConstraintsList:394,Constraint:395,ConstraintName:396,PrimaryKey:397,ForeignKey:398,UniqueKey:399,IndexKey:400,Check:401,CONSTRAINT:402,CHECK:403,PRIMARY:404,PrimaryKey_option0:405,ColsList:406,FOREIGN:407,REFERENCES:408,ForeignKey_option0:409,OnReferentialActions:410,ParColsList:411,OnDeleteClause:412,OnUpdateClause:413,ReferentialAction:414,CASCADE:415,RESTRICT:416,NO:417,ACTION:418,UniqueKey_option0:419,UniqueKey_option1:420,ColumnDef:421,ColumnConstraintsClause:422,ColumnConstraints:423,SingularColumnType:424,NumberMax:425,ENUM:426,MAXNUM:427,ColumnConstraintsList:428,ColumnConstraint:429,ParLiteral:430,ColumnConstraint_option0:431,ColumnConstraint_option1:432,DROP:433,DropTable_group0:434,IfExists:435,TablesList:436,ALTER:437,RENAME:438,ADD:439,MODIFY:440,ATTACH:441,DATABASE:442,DETACH:443,AsClause:444,USE:445,SHOW:446,VIEW:447,CreateView_option0:448,CreateView_option1:449,SubqueryRestriction:450,READ:451,ONLY:452,OPTION:453,SOURCE:454,ASSERT:455,JsonObject:456,ATLBRA:457,JsonArray:458,JsonValue:459,JsonPrimitiveValue:460,LCUR:461,JsonPropertiesList:462,RCUR:463,JsonElementsList:464,JsonProperty:465,COLONDASH:466,OnOff:467,SetPropsList:468,AtDollar:469,SetProp:470,OFF:471,COMMIT:472,TRANSACTION:473,ROLLBACK:474,BEGIN:475,ElseStatement:476,WHILE:477,CONTINUE:478,ITERATE:479,BREAK:480,LEAVE:481,PRINT:482,REQUIRE:483,StringValuesList:484,PluginsList:485,Plugin:486,ECHO:487,DECLARE:488,DeclaresList:489,DeclareItem:490,TRUNCATE:491,MERGE:492,MergeInto:493,MergeUsing:494,MergeOn:495,MergeMatchedList:496,MergeMatched:497,MergeNotMatched:498,MATCHED:499,MergeMatchedAction:500,MergeNotMatchedAction:501,TARGET:502,OUTPUT:503,CreateVertex_option0:504,CreateVertex_option1:505,CreateVertex_option2:506,CreateVertexSet:507,SharpValue:508,CONTENT:509,CreateEdge_option0:510,GRAPH:511,GraphList:512,GraphVertexEdge:513,GraphElement:514,GraphVertexEdge_option0:515,GraphVertexEdge_option1:516,GraphElementVar:517,GraphVertexEdge_option2:518,GraphVertexEdge_option3:519,GraphVertexEdge_option4:520,GraphVar:521,GraphAsClause:522,GraphAtClause:523,GraphElement2:524,GraphElement2_option0:525,GraphElement2_option1:526,GraphElement2_option2:527,GraphElement2_option3:528,GraphElement_option0:529,GraphElement_option1:530,GraphElement_option2:531,SharpLiteral:532,GraphElement_option3:533,GraphElement_option4:534,GraphElement_option5:535,ColonLiteral:536,DeleteVertex:537,DeleteVertex_option0:538,DeleteEdge:539,DeleteEdge_option0:540,DeleteEdge_option1:541,DeleteEdge_option2:542,Term:543,TermsList:544,QUESTIONDASH:545,CALL:546,TRIGGER:547,BeforeAfter:548,InsertDeleteUpdate:549,CreateTrigger_option0:550,CreateTrigger_option1:551,BEFORE:552,AFTER:553,INSTEAD:554,REINDEX:555,A:556,ABSENT:557,ABSOLUTE:558,ACCORDING:559,ADA:560,ADMIN:561,ALWAYS:562,ASC:563,ASSERTION:564,ASSIGNMENT:565,ATTRIBUTE:566,ATTRIBUTES:567,BASE64:568,BERNOULLI:569,BLOCKED:570,BOM:571,BREADTH:572,C:573,CATALOG:574,CATALOG_NAME:575,CHAIN:576,CHARACTERISTICS:577,CHARACTERS:578,CHARACTER_SET_CATALOG:579,CHARACTER_SET_NAME:580,CHARACTER_SET_SCHEMA:581,CLASS_ORIGIN:582,COBOL:583,COLLATION:584,COLLATION_CATALOG:585,COLLATION_NAME:586,COLLATION_SCHEMA:587,COLUMNS:588,COLUMN_NAME:589,COMMAND_FUNCTION:590,COMMAND_FUNCTION_CODE:591,COMMITTED:592,CONDITION_NUMBER:593,CONNECTION:594,CONNECTION_NAME:595,CONSTRAINTS:596,CONSTRAINT_CATALOG:597,CONSTRAINT_NAME:598,CONSTRAINT_SCHEMA:599,CONSTRUCTOR:600,CONTROL:601,CURSOR_NAME:602,DATA:603,DATETIME_INTERVAL_CODE:604,DATETIME_INTERVAL_PRECISION:605,DB:606,DEFAULTS:607,DEFERRABLE:608,DEFERRED:609,DEFINED:610,DEFINER:611,DEGREE:612,DEPTH:613,DERIVED:614,DESC:615,DESCRIPTOR:616,DIAGNOSTICS:617,DISPATCH:618,DOCUMENT:619,DOMAIN:620,DYNAMIC_FUNCTION:621,DYNAMIC_FUNCTION_CODE:622,EMPTY:623,ENCODING:624,ENFORCED:625,EXCLUDE:626,EXCLUDING:627,EXPRESSION:628,FILE:629,FINAL:630,FLAG:631,FOLLOWING:632,FORTRAN:633,FOUND:634,FS:635,G:636,GENERAL:637,GENERATED:638,GO:639,GOTO:640,GRANTED:641,HEX:642,HIERARCHY:643,ID:644,IMMEDIATE:645,IMMEDIATELY:646,IMPLEMENTATION:647,INCLUDING:648,INCREMENT:649,INDENT:650,INITIALLY:651,INPUT:652,INSTANCE:653,INSTANTIABLE:654,INTEGRITY:655,INVOKER:656,ISOLATION:657,K:658,KEY_MEMBER:659,KEY_TYPE:660,LENGTH:661,LEVEL:662,LIBRARY:663,LINK:664,LOCATION:665,LOCATOR:666,M:667,MAP:668,MAPPING:669,MAXVALUE:670,MESSAGE_LENGTH:671,MESSAGE_OCTET_LENGTH:672,MESSAGE_TEXT:673,MINVALUE:674,MORE:675,MUMPS:676,NAME:677,NAMES:678,NAMESPACE:679,NESTING:680,NEXT:681,NFC:682,NFD:683,NFKC:684,NFKD:685,NIL:686,NORMALIZED:687,NULLABLE:688,OBJECT:689,OCTETS:690,OPTIONS:691,ORDERING:692,ORDINALITY:693,OTHERS:694,OVERRIDING:695,P:696,PAD:697,PARAMETER_MODE:698,PARAMETER_NAME:699,PARAMETER_ORDINAL_POSITION:700,PARAMETER_SPECIFIC_CATALOG:701,PARAMETER_SPECIFIC_NAME:702,PARAMETER_SPECIFIC_SCHEMA:703,PARTIAL:704,PASCAL:705,PASSING:706,PASSTHROUGH:707,PERMISSION:708,PLACING:709,PLI:710,PRECEDING:711,PRESERVE:712,PRIOR:713,PRIVILEGES:714,PUBLIC:715,RECOVERY:716,RELATIVE:717,REPEATABLE:718,REQUIRING:719,RESPECT:720,RESTART:721,RESTORE:722,RETURNED_CARDINALITY:723,RETURNED_LENGTH:724,RETURNED_OCTET_LENGTH:725,RETURNED_SQLSTATE:726,RETURNING:727,ROLE:728,ROUTINE:729,ROUTINE_CATALOG:730,ROUTINE_NAME:731,ROUTINE_SCHEMA:732,ROW_COUNT:733,SCALE:734,SCHEMA:735,SCHEMA_NAME:736,SCOPE_CATALOG:737,SCOPE_NAME:738,SCOPE_SCHEMA:739,SECTION:740,SECURITY:741,SELECTIVE:742,SELF:743,SEQUENCE:744,SERIALIZABLE:745,SERVER:746,SERVER_NAME:747,SESSION:748,SETS:749,SIMPLE:750,SIZE:751,SPACE:752,SPECIFIC_NAME:753,STANDALONE:754,STATE:755,STATEMENT:756,STRIP:757,STRUCTURE:758,STYLE:759,SUBCLASS_ORIGIN:760,T:761,TABLE_NAME:762,TEMPORARY:763,TIES:764,TOKEN:765,TOP_LEVEL_COUNT:766,TRANSACTIONS_COMMITTED:767,TRANSACTIONS_ROLLED_BACK:768,TRANSACTION_ACTIVE:769,TRANSFORM:770,TRANSFORMS:771,TRIGGER_CATALOG:772,TRIGGER_NAME:773,TRIGGER_SCHEMA:774,TYPE:775,UNBOUNDED:776,UNCOMMITTED:777,UNDER:778,UNLINK:779,UNNAMED:780,UNTYPED:781,URI:782,USAGE:783,USER_DEFINED_TYPE_CATALOG:784,USER_DEFINED_TYPE_CODE:785,USER_DEFINED_TYPE_NAME:786,USER_DEFINED_TYPE_SCHEMA:787,VALID:788,VERSION:789,WHITESPACE:790,WORK:791,WRAPPER:792,WRITE:793,XMLDECLARATION:794,XMLSCHEMA:795,YES:796,ZONE:797,SEMICOLON:798,PERCENT:799,ROWS:800,FuncValue_option0_group0:801,$accept:0,$end:1},terminals_:{2:"error",4:"LITERAL",5:"BRALITERAL",6:"KEY",7:"OPEN",8:"CLOSE",9:"SEPARATOR",14:"EOF",18:"EXPLAIN",19:"QUERY",20:"PLAN",57:"EndTransaction",76:"WITH",78:"COMMA",80:"RECURSIVE",81:"AS",82:"LPAR",83:"RPAR",96:"SEARCH",103:"PIVOT",105:"FOR",108:"UNPIVOT",109:"IN",116:"REMOVE",121:"LIKE",124:"ARROW",125:"DOT",127:"ORDER",128:"BY",131:"DOTDOT",132:"CARET",133:"EQ",137:"WHERE",138:"OF",139:"CLASS",140:"NUMBER",141:"STRING",142:"SLASH",143:"VERTEX",144:"EDGE",145:"EXCLAMATION",146:"SHARP",147:"MODULO",148:"GT",149:"LT",150:"GTGT",151:"LTLT",152:"DOLLAR",154:"AT",155:"SET",157:"TO",158:"VALUE",159:"ROW",161:"COLON",163:"NOT",165:"IF",171:"UNION",173:"ALL",175:"ANY",177:"INTERSECT",178:"EXCEPT",179:"AND",180:"OR",181:"PATH",182:"RETURN",184:"REPEAT",188:"PLUS",189:"STAR",190:"QUESTION",192:"FROM",194:"DISTINCT",196:"UNIQUE",198:"SELECT",199:"COLUMN",200:"MATRIX",201:"TEXTSTRING",202:"INDEX",203:"RECORDSET",204:"TOP",207:"INTO",215:"CROSS",216:"APPLY",217:"OUTER",223:"INDEXED",229:"INSERTED",242:"NATURAL",243:"JOIN",244:"INNER",245:"LEFT",246:"RIGHT",247:"FULL",248:"SEMI",249:"ANTI",250:"ON",251:"USING",252:"GROUP",255:"ROLLUP",256:"CUBE",258:"GROUPING",259:"HAVING",262:"CORRESPONDING",265:"NULLS",266:"FIRST",267:"LAST",268:"DIRECTION",269:"COLLATE",270:"NOCASE",271:"LIMIT",273:"OFFSET",275:"FETCH",281:"DELETED",292:"CURRENT_TIMESTAMP",293:"CURRENT_DATE",294:"JAVASCRIPT",295:"CREATE",296:"FUNCTION",297:"AGGREGATE",298:"NEW",299:"CAST",301:"CONVERT",304:"GROUP_CONCAT",307:"OVER",311:"PARTITION",313:"SUM",314:"TOTAL",315:"COUNT",316:"MIN",317:"MAX",318:"AVG",319:"AGGR",320:"ARRAY",322:"REPLACE",323:"DATEADD",324:"DATEDIFF",325:"TIMESTAMPDIFF",326:"INTERVAL",327:"TRUE",328:"FALSE",329:"NSTRING",330:"NULL",331:"EXISTS",332:"ARRAYLBRA",333:"RBRA",335:"BRAQUESTION",336:"CASE",339:"END",341:"WHEN",342:"THEN",343:"ELSE",344:"REGEXP",345:"TILDA",346:"GLOB",347:"ESCAPE",348:"NOT_LIKE",349:"BARBAR",350:"MINUS",351:"AMPERSAND",352:"BAR",353:"GE",354:"LE",355:"EQEQ",356:"EQEQEQ",357:"NE",358:"NEEQEQ",359:"NEEQEQEQ",363:"BETWEEN",364:"NOT_BETWEEN",365:"IS",366:"DOUBLECOLON",367:"SOME",368:"UPDATE",372:"DELETE",373:"INSERT",377:"IGNORE",378:"DEFAULT",379:"VALUES",382:"DateValue",388:"TABLE",391:"IDENTITY",392:"TEMP",402:"CONSTRAINT",403:"CHECK",404:"PRIMARY",407:"FOREIGN",408:"REFERENCES",415:"CASCADE",416:"RESTRICT",417:"NO",418:"ACTION",423:"ColumnConstraints",426:"ENUM",427:"MAXNUM",433:"DROP",437:"ALTER",438:"RENAME",439:"ADD",440:"MODIFY",441:"ATTACH",442:"DATABASE",443:"DETACH",445:"USE",446:"SHOW",447:"VIEW",451:"READ",452:"ONLY",453:"OPTION",454:"SOURCE",455:"ASSERT",457:"ATLBRA",461:"LCUR",463:"RCUR",466:"COLONDASH",471:"OFF",472:"COMMIT",473:"TRANSACTION",474:"ROLLBACK",475:"BEGIN",477:"WHILE",478:"CONTINUE",479:"ITERATE",480:"BREAK",481:"LEAVE",482:"PRINT",483:"REQUIRE",487:"ECHO",488:"DECLARE",491:"TRUNCATE",492:"MERGE",499:"MATCHED",502:"TARGET",503:"OUTPUT",509:"CONTENT",511:"GRAPH",545:"QUESTIONDASH",546:"CALL",547:"TRIGGER",552:"BEFORE",553:"AFTER",554:"INSTEAD",555:"REINDEX",556:"A",557:"ABSENT",558:"ABSOLUTE",559:"ACCORDING",560:"ADA",561:"ADMIN",562:"ALWAYS",563:"ASC",564:"ASSERTION",565:"ASSIGNMENT",566:"ATTRIBUTE",567:"ATTRIBUTES",568:"BASE64",569:"BERNOULLI",570:"BLOCKED",571:"BOM",572:"BREADTH",573:"C",574:"CATALOG",575:"CATALOG_NAME",576:"CHAIN",577:"CHARACTERISTICS",578:"CHARACTERS",579:"CHARACTER_SET_CATALOG",580:"CHARACTER_SET_NAME",581:"CHARACTER_SET_SCHEMA",582:"CLASS_ORIGIN",583:"COBOL",584:"COLLATION",585:"COLLATION_CATALOG",586:"COLLATION_NAME",587:"COLLATION_SCHEMA",588:"COLUMNS",589:"COLUMN_NAME",590:"COMMAND_FUNCTION",591:"COMMAND_FUNCTION_CODE",592:"COMMITTED",593:"CONDITION_NUMBER",594:"CONNECTION",595:"CONNECTION_NAME",596:"CONSTRAINTS",597:"CONSTRAINT_CATALOG",598:"CONSTRAINT_NAME",599:"CONSTRAINT_SCHEMA",600:"CONSTRUCTOR",601:"CONTROL",602:"CURSOR_NAME",603:"DATA",604:"DATETIME_INTERVAL_CODE",605:"DATETIME_INTERVAL_PRECISION",606:"DB",607:"DEFAULTS",608:"DEFERRABLE",609:"DEFERRED",610:"DEFINED",611:"DEFINER",612:"DEGREE",613:"DEPTH",614:"DERIVED",615:"DESC",616:"DESCRIPTOR",617:"DIAGNOSTICS",618:"DISPATCH",619:"DOCUMENT",620:"DOMAIN",621:"DYNAMIC_FUNCTION",622:"DYNAMIC_FUNCTION_CODE",623:"EMPTY",624:"ENCODING",625:"ENFORCED",626:"EXCLUDE",627:"EXCLUDING",628:"EXPRESSION",629:"FILE",630:"FINAL",631:"FLAG",632:"FOLLOWING",633:"FORTRAN",634:"FOUND",635:"FS",636:"G",637:"GENERAL",638:"GENERATED",639:"GO",640:"GOTO",641:"GRANTED",642:"HEX",643:"HIERARCHY",644:"ID",645:"IMMEDIATE",646:"IMMEDIATELY",647:"IMPLEMENTATION",648:"INCLUDING",649:"INCREMENT",650:"INDENT",651:"INITIALLY",652:"INPUT",653:"INSTANCE",654:"INSTANTIABLE",655:"INTEGRITY",656:"INVOKER",657:"ISOLATION",658:"K",659:"KEY_MEMBER",660:"KEY_TYPE",661:"LENGTH",662:"LEVEL",663:"LIBRARY",664:"LINK",665:"LOCATION",666:"LOCATOR",667:"M",668:"MAP",669:"MAPPING",670:"MAXVALUE",671:"MESSAGE_LENGTH",672:"MESSAGE_OCTET_LENGTH",673:"MESSAGE_TEXT",674:"MINVALUE",675:"MORE",676:"MUMPS",677:"NAME",678:"NAMES",679:"NAMESPACE",680:"NESTING",681:"NEXT",682:"NFC",683:"NFD",684:"NFKC",685:"NFKD",686:"NIL",687:"NORMALIZED",688:"NULLABLE",689:"OBJECT",690:"OCTETS",691:"OPTIONS",692:"ORDERING",693:"ORDINALITY",694:"OTHERS",695:"OVERRIDING",696:"P",697:"PAD",698:"PARAMETER_MODE",699:"PARAMETER_NAME",700:"PARAMETER_ORDINAL_POSITION",701:"PARAMETER_SPECIFIC_CATALOG",702:"PARAMETER_SPECIFIC_NAME",703:"PARAMETER_SPECIFIC_SCHEMA",704:"PARTIAL",705:"PASCAL",706:"PASSING",707:"PASSTHROUGH",708:"PERMISSION",709:"PLACING",710:"PLI",711:"PRECEDING",712:"PRESERVE",713:"PRIOR",714:"PRIVILEGES",715:"PUBLIC",716:"RECOVERY",717:"RELATIVE",718:"REPEATABLE",719:"REQUIRING",720:"RESPECT",721:"RESTART",722:"RESTORE",723:"RETURNED_CARDINALITY",724:"RETURNED_LENGTH",725:"RETURNED_OCTET_LENGTH",726:"RETURNED_SQLSTATE",727:"RETURNING",728:"ROLE",729:"ROUTINE",730:"ROUTINE_CATALOG",731:"ROUTINE_NAME",732:"ROUTINE_SCHEMA",733:"ROW_COUNT",734:"SCALE",735:"SCHEMA",736:"SCHEMA_NAME",737:"SCOPE_CATALOG",738:"SCOPE_NAME",739:"SCOPE_SCHEMA",740:"SECTION",741:"SECURITY",742:"SELECTIVE",743:"SELF",744:"SEQUENCE",745:"SERIALIZABLE",746:"SERVER",747:"SERVER_NAME",748:"SESSION",749:"SETS",750:"SIMPLE",751:"SIZE",752:"SPACE",753:"SPECIFIC_NAME",754:"STANDALONE",755:"STATE",756:"STATEMENT",757:"STRIP",758:"STRUCTURE",759:"STYLE",760:"SUBCLASS_ORIGIN",761:"T",762:"TABLE_NAME",763:"TEMPORARY",764:"TIES",765:"TOKEN",766:"TOP_LEVEL_COUNT",767:"TRANSACTIONS_COMMITTED",768:"TRANSACTIONS_ROLLED_BACK",769:"TRANSACTION_ACTIVE",770:"TRANSFORM",771:"TRANSFORMS",772:"TRIGGER_CATALOG",773:"TRIGGER_NAME",774:"TRIGGER_SCHEMA",775:"TYPE",776:"UNBOUNDED",777:"UNCOMMITTED",778:"UNDER",779:"UNLINK",780:"UNNAMED",781:"UNTYPED",782:"URI",783:"USAGE",784:"USER_DEFINED_TYPE_CATALOG",785:"USER_DEFINED_TYPE_CODE",786:"USER_DEFINED_TYPE_NAME",787:"USER_DEFINED_TYPE_SCHEMA",788:"VALID",789:"VERSION",790:"WHITESPACE",791:"WORK",792:"WRAPPER",793:"WRITE",794:"XMLDECLARATION",795:"XMLSCHEMA",796:"YES",797:"ZONE",798:"SEMICOLON",799:"PERCENT",800:"ROWS"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,2],[11,1],[11,2],[12,2],[13,3],[13,1],[13,1],[17,2],[17,4],[16,1],[21,0],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[51,3],[77,3],[77,4],[77,1],[77,2],[79,5],[79,8],[44,10],[44,4],[44,4],[99,8],[95,3],[102,8],[102,11],[111,4],[113,2],[113,1],[112,3],[112,1],[114,1],[114,3],[115,3],[118,3],[118,1],[119,1],[119,2],[123,1],[123,1],[126,1],[126,5],[126,5],[126,1],[126,2],[126,1],[126,2],[126,2],[126,3],[126,4],[126,4],[126,4],[126,4],[126,4],[126,1],[126,1],[126,1],[126,1],[126,1],[126,1],[126,2],[126,2],[126,2],[126,1],[126,1],[126,1],[126,1],[126,1],[126,1],[126,2],[126,3],[126,4],[126,3],[126,1],[126,4],[126,2],[126,2],[126,4],[126,4],[126,4],[126,4],[126,4],[126,5],[126,4],[126,4],[126,4],[126,4],[126,4],[126,4],[126,4],[126,4],[126,6],[172,3],[172,1],[162,1],[162,1],[162,1],[191,2],[85,4],[85,4],[85,4],[85,3],[193,1],[193,2],[193,2],[193,2],[193,2],[193,2],[193,2],[193,2],[195,3],[195,4],[195,0],[87,0],[87,2],[87,2],[87,2],[87,2],[87,2],[88,2],[88,3],[88,5],[88,5],[88,0],[214,6],[214,7],[214,6],[214,7],[212,1],[212,3],[218,4],[218,3],[218,2],[218,3],[218,2],[218,2],[218,2],[218,2],[218,1],[230,1],[230,2],[227,1],[208,3],[208,1],[231,1],[231,1],[213,2],[213,2],[213,1],[213,1],[232,3],[234,2],[234,3],[234,2],[234,4],[234,2],[234,2],[233,1],[233,2],[241,1],[241,2],[241,2],[241,3],[241,2],[241,3],[241,2],[241,3],[241,2],[241,2],[241,2],[235,2],[235,2],[235,4],[235,0],[90,0],[90,2],[91,0],[91,4],[91,6],[91,6],[253,1],[253,3],[257,5],[257,4],[257,4],[257,1],[254,0],[254,2],[92,0],[92,2],[260,1],[260,2],[260,1],[260,1],[260,2],[260,3],[260,2],[260,2],[261,1],[261,1],[93,0],[93,3],[129,1],[129,3],[264,2],[264,2],[263,1],[263,2],[263,3],[263,3],[263,4],[94,0],[94,3],[94,8],[272,0],[272,2],[183,3],[183,1],[279,3],[279,2],[279,3],[279,2],[279,3],[279,2],[279,1],[280,5],[280,3],[280,3],[280,3],[280,1],[120,5],[120,3],[120,3],[120,3],[120,3],[120,4],[120,1],[120,1],[120,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,3],[104,3],[104,3],[104,1],[104,1],[104,1],[60,1],[74,5],[75,5],[290,2],[290,2],[288,6],[288,8],[288,6],[288,8],[302,1],[302,1],[302,1],[302,1],[302,1],[302,1],[302,1],[302,1],[282,5],[282,6],[282,6],[282,6],[282,7],[303,0],[303,5],[310,3],[312,3],[305,0],[305,3],[306,0],[306,2],[167,1],[167,1],[167,1],[167,1],[167,1],[167,1],[167,1],[167,1],[167,1],[167,1],[167,1],[209,6],[209,4],[209,4],[209,4],[209,3],[209,8],[209,8],[209,8],[209,8],[209,8],[209,3],[160,1],[160,3],[205,1],[284,1],[284,1],[122,1],[122,1],[285,1],[211,2],[286,4],[289,3],[210,2],[210,2],[210,1],[210,1],[287,5],[287,4],[337,2],[337,1],[340,4],[338,2],[338,0],[283,3],[283,3],[283,3],[283,3],[283,5],[283,3],[283,5],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,5],[283,3],[283,3],[283,3],[283,5],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,6],[283,6],[283,3],[283,3],[283,2],[283,2],[283,2],[283,2],[283,2],[283,3],[283,5],[283,6],[283,5],[283,6],[283,4],[283,5],[283,3],[283,4],[283,3],[283,4],[283,3],[283,3],[283,3],[283,3],[283,3],[362,1],[362,1],[362,4],[360,1],[360,1],[360,1],[360,1],[360,1],[360,1],[361,1],[361,1],[361,1],[59,7],[59,5],[156,1],[156,3],[370,3],[370,4],[33,6],[33,4],[40,6],[40,5],[40,7],[40,6],[40,10],[40,9],[40,6],[40,9],[40,8],[40,7],[40,6],[40,5],[40,6],[40,9],[40,8],[40,5],[40,7],[40,8],[40,6],[375,1],[375,1],[374,0],[374,1],[376,3],[376,1],[376,1],[376,5],[376,3],[376,3],[380,1],[380,3],[381,1],[381,1],[381,1],[381,1],[381,1],[381,1],[84,1],[84,3],[28,9],[28,5],[384,1],[384,1],[387,0],[387,1],[389,2],[389,1],[390,1],[390,3],[390,3],[390,3],[383,0],[383,1],[385,0],[385,3],[386,3],[386,1],[386,2],[394,1],[394,3],[395,2],[395,2],[395,2],[395,2],[395,2],[396,0],[396,2],[401,4],[397,6],[398,9],[411,3],[410,0],[410,1],[410,1],[410,2],[410,2],[412,3],[413,3],[414,1],[414,2],[414,2],[414,1],[414,2],[399,6],[400,5],[406,1],[406,1],[406,3],[406,3],[393,1],[393,3],[421,3],[421,2],[421,1],[424,6],[424,4],[424,1],[424,4],[300,2],[300,1],[425,1],[425,1],[422,0],[422,1],[428,2],[428,1],[430,3],[429,2],[429,6],[429,4],[429,6],[429,1],[429,2],[429,4],[429,2],[429,1],[429,2],[429,1],[429,1],[429,3],[429,5],[37,4],[436,3],[436,1],[435,0],[435,2],[22,6],[22,6],[22,6],[22,8],[22,6],[43,5],[23,4],[23,7],[23,6],[23,9],[34,3],[25,4],[25,6],[25,9],[25,6],[444,0],[444,2],[58,3],[58,2],[35,4],[35,5],[35,5],[26,8],[26,9],[36,3],[47,2],[47,4],[47,3],[47,5],[49,2],[49,4],[49,4],[49,6],[46,4],[46,6],[48,4],[48,6],[45,4],[45,6],[29,11],[29,8],[450,3],[450,3],[450,5],[38,4],[70,2],[61,2],[62,2],[62,2],[62,4],[153,4],[153,2],[153,2],[153,2],[153,2],[153,1],[153,2],[153,2],[459,1],[459,1],[460,1],[460,2],[460,1],[460,1],[460,1],[460,1],[460,1],[460,1],[460,3],[456,3],[456,4],[456,2],[458,2],[458,3],[458,1],[462,3],[462,1],[465,3],[465,3],[465,3],[465,3],[465,3],[465,3],[464,3],[464,1],[69,4],[69,3],[69,4],[69,5],[69,5],[69,6],[469,1],[469,1],[468,3],[468,2],[470,1],[470,1],[470,3],[467,1],[467,1],[55,2],[56,2],[54,2],[39,4],[39,3],[476,2],[63,3],[64,1],[64,1],[65,1],[65,1],[66,3],[67,2],[67,2],[68,2],[68,2],[486,1],[486,1],[73,2],[484,3],[484,1],[485,3],[485,1],[32,2],[489,1],[489,3],[490,3],[490,4],[490,5],[490,6],[50,3],[41,6],[493,1],[493,2],[494,2],[494,4],[495,2],[496,2],[496,2],[496,1],[496,1],[497,4],[497,6],[500,1],[500,3],[498,5],[498,7],[498,7],[498,9],[498,7],[498,9],[501,3],[501,6],[501,3],[501,6],[369,0],[369,2],[369,5],[369,4],[369,7],[31,6],[508,2],[507,0],[507,2],[507,2],[507,1],[30,8],[27,3],[27,4],[512,3],[512,1],[513,3],[513,7],[513,6],[513,3],[513,4],[517,1],[517,1],[521,2],[522,3],[523,2],[524,4],[514,4],[514,3],[514,2],[514,1],[536,2],[532,2],[532,2],[537,4],[539,6],[71,3],[71,2],[544,3],[544,1],[543,1],[543,4],[72,2],[24,2],[52,9],[52,8],[52,9],[548,0],[548,1],[548,1],[548,1],[548,2],[549,1],[549,1],[549,1],[53,3],[42,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[15,1],[15,1],[86,0],[86,1],[89,0],[89,1],[97,0],[97,2],[98,0],[98,1],[100,0],[100,1],[101,0],[101,1],[106,0],[106,1],[107,0],[107,1],[110,0],[110,1],[117,0],[117,1],[130,0],[130,1],[134,1],[134,2],[135,1],[135,2],[136,0],[136,1],[164,0],[164,2],[166,0],[166,2],[168,0],[168,2],[169,1],[169,1],[170,0],[170,2],[174,0],[174,2],[176,0],[176,2],[185,0],[185,2],[186,0],[186,2],[187,0],[187,2],[197,0],[197,1],[206,0],[206,1],[219,0],[219,1],[220,0],[220,1],[221,0],[221,1],[222,0],[222,1],[224,0],[224,1],[225,0],[225,1],[226,0],[226,1],[228,0],[228,1],[236,0],[236,1],[237,0],[237,1],[238,0],[238,1],[239,0],[239,1],[240,0],[240,1],[274,0],[274,1],[276,0],[276,1],[277,0],[277,1],[278,0],[278,1],[291,1],[291,1],[308,0],[308,1],[309,0],[309,1],[801,1],[801,1],[321,0],[321,1],[334,1],[334,1],[371,1],[371,1],[405,0],[405,1],[409,0],[409,1],[419,0],[419,1],[420,0],[420,1],[431,0],[431,1],[432,0],[432,1],[434,1],[434,1],[448,0],[448,1],[449,0],[449,1],[504,0],[504,1],[505,0],[505,1],[506,0],[506,1],[510,0],[510,1],[515,0],[515,1],[516,0],[516,1],[518,0],[518,1],[519,0],[519,1],[520,0],[520,1],[525,0],[525,1],[526,0],[526,1],[527,0],[527,1],[528,0],[528,1],[529,0],[529,1],[530,0],[530,1],[531,0],[531,1],[533,0],[533,1],[534,0],[534,1],[535,0],[535,1],[538,0],[538,2],[540,0],[540,2],[541,0],[541,2],[542,0],[542,2],[550,0],[550,1],[551,0],[551,1]],performAction:function(ve,ke,Te,d,Je,l,rt){var u=l.length-1;switch(Je){case 1:c.options.casesensitive?this.$=l[u]:this.$=l[u].toLowerCase();break;case 2:this.$=ks(l[u].substr(1,l[u].length-2));break;case 3:case 4:case 5:case 6:this.$=l[u].toLowerCase();break;case 7:this.$=l[u].toLowerCase();break;case 8:this.$=l[u];break;case 9:this.$=l[u]?l[u-1]+" "+l[u]:l[u-1];break;case 10:return new d.Statements({statements:l[u-1]});case 11:this.$=l[u-2],l[u]&&l[u-2].push(l[u]);break;case 12:case 13:case 75:case 90:case 95:case 153:case 188:case 208:case 209:case 240:case 262:case 277:case 375:case 393:case 472:case 502:case 503:case 507:case 515:case 563:case 564:case 601:case 688:case 698:case 724:case 726:case 728:case 743:case 744:case 774:case 798:this.$=[l[u]];break;case 14:this.$=l[u],l[u].explain=true;break;case 15:this.$=l[u],l[u].explain=true;break;case 16:this.$=l[u],d.exists&&(this.$.exists=d.exists),delete d.exists,d.queries&&(this.$.queries=d.queries),delete d.queries;break;case 17:case 172:case 183:case 233:case 234:case 236:case 246:case 248:case 260:case 271:case 274:case 345:case 349:case 351:case 396:case 519:case 529:case 531:case 543:case 602:this.$=void 0;break;case 72:this.$=new d.WithSelect({withs:l[u-1],select:l[u]});break;case 73:case 600:l[u-2].push(l[u]),this.$=l[u-2];break;case 74:l[u].recursive=true,l[u-3].push(l[u]),this.$=l[u-3];break;case 76:l[u].recursive=true,this.$=[l[u]];break;case 77:this.$={name:l[u-4],select:l[u-1]};break;case 78:this.$={name:l[u-7],columns:l[u-5],select:l[u-1]};break;case 79:d.extend(this.$,l[u-9]),d.extend(this.$,l[u-8]),d.extend(this.$,l[u-7]),d.extend(this.$,l[u-6]),d.extend(this.$,l[u-5]),d.extend(this.$,l[u-4]),d.extend(this.$,l[u-3]),d.extend(this.$,l[u-2]),d.extend(this.$,l[u-1]),d.extend(this.$,l[u]),this.$=l[u-9],d.exists&&(this.$.exists=d.exists.slice());break;case 80:d.extend(this.$,l[u-3]),d.extend(this.$,l[u-2]),d.extend(this.$,l[u-1]),d.extend(this.$,l[u]),this.$=l[u-3],d.exists&&(this.$.exists=d.exists.slice());break;case 81:this.$=new d.Search({selectors:l[u-2],from:l[u]}),d.extend(this.$,l[u-1]);break;case 82:d.extend(this.$,l[u-7]),d.extend(this.$,l[u-6]),d.extend(this.$,l[u-5]),d.extend(this.$,l[u-4]),d.extend(this.$,l[u-3]),d.extend(this.$,l[u-2]),d.extend(this.$,l[u-1]),d.extend(this.$,l[u]),this.$=l[u-7],d.exists&&(this.$.exists=d.exists.slice());break;case 83:case 86:case 548:case 584:case 620:case 654:case 672:case 673:case 676:case 701:this.$=l[u-1];break;case 84:this.$={pivot:{expr:l[u-5],columnid:l[u-3],inlist:l[u-2],as:l[u]}};break;case 85:this.$={unpivot:{tocolumnid:l[u-8],forcolumnid:l[u-6],inlist:l[u-3],as:l[u]}};break;case 87:case 88:case 96:case 157:case 199:case 200:case 204:case 205:case 245:case 284:case 299:case 300:case 301:case 302:case 303:case 304:case 305:case 306:case 307:case 308:case 309:case 310:case 311:case 312:case 315:case 316:case 332:case 333:case 334:case 335:case 336:case 337:case 350:case 395:case 461:case 462:case 463:case 464:case 465:case 466:case 544:case 577:case 581:case 583:case 658:case 659:case 660:case 661:case 662:case 663:case 668:case 670:case 671:case 680:case 699:case 700:case 765:case 780:case 781:case 783:case 784:case 790:case 791:this.$=l[u];break;case 89:case 94:case 773:case 797:this.$=l[u-2],this.$.push(l[u]);break;case 91:this.$={expr:l[u]};break;case 92:this.$={expr:l[u-2],as:l[u]};break;case 93:this.$={removecolumns:l[u]};break;case 97:this.$={like:l[u]};break;case 100:case 114:this.$={srchid:"PROP",args:[l[u]]};break;case 101:this.$={srchid:"ORDERBY",args:l[u-1]};break;case 102:var X3=l[u-1];X3||(X3="ASC"),this.$={srchid:"ORDERBY",args:[{expression:new d.Column({columnid:"_"}),direction:X3}]};break;case 103:this.$={srchid:"PARENT"};break;case 104:this.$={srchid:"APROP",args:[l[u]]};break;case 105:this.$={selid:"ROOT"};break;case 106:this.$={srchid:"EQ",args:[l[u]]};break;case 107:this.$={srchid:"LIKE",args:[l[u]]};break;case 108:case 109:this.$={selid:"WITH",args:l[u-1]};break;case 110:this.$={srchid:l[u-3].toUpperCase(),args:l[u-1]};break;case 111:this.$={srchid:"WHERE",args:[l[u-1]]};break;case 112:this.$={selid:"OF",args:[l[u-1]]};break;case 113:this.$={srchid:"CLASS",args:[l[u-1]]};break;case 115:this.$={srchid:"NAME",args:[l[u].substr(1,l[u].length-2)]};break;case 116:this.$={srchid:"CHILD"};break;case 117:this.$={srchid:"VERTEX"};break;case 118:this.$={srchid:"EDGE"};break;case 119:this.$={srchid:"REF"};break;case 120:this.$={srchid:"SHARP",args:[l[u]]};break;case 121:this.$={srchid:"ATTR",args:typeof l[u]>"u"?void 0:[l[u]]};break;case 122:this.$={srchid:"ATTR"};break;case 123:this.$={srchid:"OUT"};break;case 124:this.$={srchid:"IN"};break;case 125:this.$={srchid:"OUTOUT"};break;case 126:this.$={srchid:"ININ"};break;case 127:this.$={srchid:"CONTENT"};break;case 128:this.$={srchid:"EX",args:[new d.Json({value:l[u]})]};break;case 129:this.$={srchid:"AT",args:[l[u]]};break;case 130:this.$={srchid:"AS",args:[l[u]]};break;case 131:this.$={srchid:"SET",args:l[u-1]};break;case 132:this.$={selid:"TO",args:[l[u]]};break;case 133:this.$={srchid:"VALUE"};break;case 134:this.$={srchid:"ROW",args:l[u-1]};break;case 135:this.$={srchid:"CLASS",args:[l[u]]};break;case 136:this.$={selid:l[u],args:[l[u-1]]};break;case 137:this.$={selid:"NOT",args:l[u-1]};break;case 138:this.$={selid:"IF",args:l[u-1]};break;case 139:this.$={selid:l[u-3],args:l[u-1]};break;case 140:this.$={selid:"DISTINCT",args:l[u-1]};break;case 141:this.$={selid:"UNION",args:l[u-1]};break;case 142:this.$={selid:"UNIONALL",args:l[u-1]};break;case 143:this.$={selid:"ALL",args:[l[u-1]]};break;case 144:this.$={selid:"ANY",args:[l[u-1]]};break;case 145:this.$={selid:"INTERSECT",args:l[u-1]};break;case 146:this.$={selid:"EXCEPT",args:l[u-1]};break;case 147:this.$={selid:"AND",args:l[u-1]};break;case 148:this.$={selid:"OR",args:l[u-1]};break;case 149:this.$={selid:"PATH",args:[l[u-1]]};break;case 150:this.$={srchid:"RETURN",args:l[u-1]};break;case 151:this.$={selid:"REPEAT",sels:l[u-3],args:l[u-1]};break;case 152:this.$=l[u-2],this.$.push(l[u]);break;case 154:this.$="PLUS";break;case 155:this.$="STAR";break;case 156:this.$="QUESTION";break;case 158:this.$=new d.Select({columns:l[u],distinct:true}),d.extend(this.$,l[u-3]),d.extend(this.$,l[u-1]);break;case 159:this.$=new d.Select({columns:l[u],distinct:true}),d.extend(this.$,l[u-3]),d.extend(this.$,l[u-1]);break;case 160:this.$=new d.Select({columns:l[u],all:true}),d.extend(this.$,l[u-3]),d.extend(this.$,l[u-1]);break;case 161:l[u]?(this.$=new d.Select({columns:l[u]}),d.extend(this.$,l[u-2]),d.extend(this.$,l[u-1])):this.$=new d.Select({columns:[new d.Column({columnid:"_"})],modifier:"COLUMN"});break;case 162:l[u]=="SELECT"?this.$=void 0:this.$={modifier:l[u]};break;case 163:this.$={modifier:"VALUE"};break;case 164:this.$={modifier:"ROW"};break;case 165:this.$={modifier:"COLUMN"};break;case 166:this.$={modifier:"MATRIX"};break;case 167:this.$={modifier:"TEXTSTRING"};break;case 168:this.$={modifier:"INDEX"};break;case 169:this.$={modifier:"RECORDSET"};break;case 170:this.$={top:l[u-1],percent:typeof l[u]<"u"?true:void 0};break;case 171:this.$={top:l[u-1]};break;case 173:case 766:this.$=void 0;break;case 174:case 175:case 176:case 177:this.$={into:l[u]};break;case 178:var We=l[u];We=We.substr(1,We.length-2);var i3=We.substr(-3).toUpperCase(),b3=We.substr(-4).toUpperCase();We[0]=="#"?this.$={into:new d.FuncValue({funcid:"HTML",args:[new d.StringValue({value:We}),new d.Json({value:{headers:true}})]})}:i3=="XLS"||i3=="CSV"||i3=="TAB"?this.$={into:new d.FuncValue({funcid:i3,args:[new d.StringValue({value:We}),new d.Json({value:{headers:true}})]})}:(b3=="XLSX"||b3=="JSON")&&(this.$={into:new d.FuncValue({funcid:b3,args:[new d.StringValue({value:We}),new d.Json({value:{headers:true}})]})});break;case 179:this.$={from:l[u]};break;case 180:this.$={from:l[u-1],joins:l[u]};break;case 181:var Pt=l[u-2];l[u].forEach(Le=>{var o2=new d.Join({joinmode:"CROSS"});Le.tableid?o2.table=new d.Table({databaseid:Le.databaseid,tableid:Le.tableid}):Le instanceof d.Select?o2.select=Le:Le instanceof d.Search?o2.search=Le:Le instanceof d.ParamValue?o2.param=Le:Le instanceof d.VarValue?o2.variable=Le.variable:Le instanceof d.FuncValue?o2.func=Le:Le instanceof d.Json&&(o2.json=Le),Le.as&&(o2.as=Le.as),Pt.push(o2);}),this.$={from:l[u-3],joins:Pt};break;case 182:this.$={from:l[u-2],joins:l[u-1]};break;case 184:this.$=new d.Apply({select:l[u-2],applymode:"CROSS",as:l[u]});break;case 185:this.$=new d.Apply({select:l[u-3],applymode:"CROSS",as:l[u]});break;case 186:this.$=new d.Apply({select:l[u-2],applymode:"OUTER",as:l[u]});break;case 187:this.$=new d.Apply({select:l[u-3],applymode:"OUTER",as:l[u]});break;case 189:case 241:case 473:case 565:case 566:this.$=l[u-2],l[u-2].push(l[u]);break;case 190:this.$=l[u-2],this.$.as=l[u]||"default";break;case 191:this.$=new d.Json({value:l[u-2]}),l[u-2].as=l[u];break;case 192:this.$=l[u-1],l[u]&&(l[u-1].as=l[u]);break;case 193:case 674:case 677:this.$=l[u-2];break;case 194:case 195:case 196:case 197:this.$=l[u-1],l[u-1].as=l[u]||"default";break;case 198:this.$={inserted:true};break;case 201:var We=l[u];We=We.substr(1,We.length-2);var i3=We.substr(-3).toUpperCase(),b3=We.substr(-4).toUpperCase(),Gt;if(We[0]=="#")Gt=new d.FuncValue({funcid:"HTML",args:[new d.StringValue({value:We}),new d.Json({value:{headers:true}})]});else if(i3=="XLS"||i3=="CSV"||i3=="TAB")Gt=new d.FuncValue({funcid:i3,args:[new d.StringValue({value:We}),new d.Json({value:{headers:true}})]});else if(b3=="XLSX"||b3=="JSON")Gt=new d.FuncValue({funcid:b3,args:[new d.StringValue({value:We}),new d.Json({value:{headers:true}})]});else throw new Error("Unknown string in FROM clause");this.$=Gt;break;case 202:l[u-2]=="INFORMATION_SCHEMA"?this.$=new d.FuncValue({funcid:l[u-2],args:[new d.StringValue({value:l[u]})]}):this.$=new d.Table({databaseid:l[u-2],tableid:l[u]});break;case 203:this.$=new d.Table({tableid:l[u]});break;case 206:case 207:this.$=l[u-1],l[u-1].push(l[u]);break;case 210:this.$=new d.Join(l[u-2]),d.extend(this.$,l[u-1]),d.extend(this.$,l[u]);break;case 211:this.$={table:l[u-1]},l[u]&&(this.$.as=l[u]);break;case 212:this.$={json:new d.Json({value:l[u-2],as:l[u]})};break;case 213:this.$={param:l[u-1],as:l[u]};break;case 214:this.$={select:l[u-2],as:l[u]};break;case 215:this.$={func:l[u-1],as:l[u]||"default"};break;case 216:this.$={variable:l[u-1],as:l[u]||"default"};break;case 217:this.$={joinmode:l[u]};break;case 218:this.$={joinmode:l[u-1],natural:true};break;case 219:case 220:this.$="INNER";break;case 221:case 222:this.$="LEFT";break;case 223:case 224:this.$="RIGHT";break;case 225:case 226:this.$="OUTER";break;case 227:this.$="SEMI";break;case 228:this.$="ANTI";break;case 229:this.$="CROSS";break;case 230:this.$={on:l[u]};break;case 231:case 738:this.$={using:l[u]};break;case 232:case 739:this.$={using:l[u-1]};break;case 235:this.$={where:new d.Expression({expression:l[u]})};break;case 237:this.$={group:l[u-1]},d.extend(this.$,l[u]);break;case 238:this.$={group:[new d.GroupExpression({type:"ROLLUP",group:l[u-3]})]},d.extend(this.$,l[u]);break;case 239:this.$={group:[new d.GroupExpression({type:"CUBE",group:l[u-3]})]},d.extend(this.$,l[u]);break;case 242:this.$=new d.GroupExpression({type:"GROUPING SETS",group:l[u-1]});break;case 243:this.$=new d.GroupExpression({type:"ROLLUP",group:l[u-1]});break;case 244:this.$=new d.GroupExpression({type:"CUBE",group:l[u-1]});break;case 247:this.$={having:l[u]};break;case 249:this.$={},this.$[l[u-1].op]=l[u],l[u-1].corresponding&&(this.$.corresponding=true);break;case 250:d.queriesStack||(d.queriesStack=[]),d.queriesStack.push(d.queries||[]),d.queries=[],this.$={op:"union"};break;case 251:d.queriesStack||(d.queriesStack=[]),d.queriesStack.push(d.queries||[]),d.queries=[],this.$={op:"unionall"};break;case 252:d.queriesStack||(d.queriesStack=[]),d.queriesStack.push(d.queries||[]),d.queries=[],this.$={op:"except"};break;case 253:d.queriesStack||(d.queriesStack=[]),d.queriesStack.push(d.queries||[]),d.queries=[],this.$={op:"intersect"};break;case 254:d.queriesStack||(d.queriesStack=[]),d.queriesStack.push(d.queries||[]),d.queries=[],this.$={op:"union",corresponding:true};break;case 255:d.queriesStack||(d.queriesStack=[]),d.queriesStack.push(d.queries||[]),d.queries=[],this.$={op:"unionall",corresponding:true};break;case 256:d.queriesStack||(d.queriesStack=[]),d.queriesStack.push(d.queries||[]),d.queries=[],this.$={op:"except",corresponding:true};break;case 257:d.queriesStack||(d.queriesStack=[]),d.queriesStack.push(d.queries||[]),d.queries=[],this.$={op:"intersect",corresponding:true};break;case 258:case 259:d.queriesStack&&d.queriesStack.length>0&&(d.queries&&d.queries.length>0&&(l[u].queries=d.queries),d.queries=d.queriesStack.pop()),this.$=l[u];break;case 261:this.$={order:l[u]};break;case 263:this.$=l[u-2],l[u-2].push(l[u]);break;case 264:this.$={nullsOrder:"FIRST"};break;case 265:this.$={nullsOrder:"LAST"};break;case 266:this.$=new d.Expression({expression:l[u],direction:"ASC"});break;case 267:this.$=new d.Expression({expression:l[u-1],direction:l[u].toUpperCase()});break;case 268:this.$=new d.Expression({expression:l[u-2],direction:l[u-1].toUpperCase()}),d.extend(this.$,l[u]);break;case 269:this.$=new d.Expression({expression:l[u-2],direction:"ASC",nocase:true});break;case 270:this.$=new d.Expression({expression:l[u-3],direction:l[u].toUpperCase(),nocase:true});break;case 272:this.$={limit:l[u-1]},d.extend(this.$,l[u]);break;case 273:this.$={limit:l[u-2],offset:l[u-6]};break;case 275:this.$={offset:l[u]};break;case 276:case 537:case 568:case 687:case 697:case 723:case 725:case 729:l[u-2].push(l[u]),this.$=l[u-2];break;case 278:case 280:l[u-2].as=l[u],this.$=l[u-2];break;case 279:case 281:l[u-1].as=l[u],this.$=l[u-1];break;case 282:l[u-2].as=l[u].value,this.$=l[u-2];break;case 283:l[u-1].as=l[u].value,this.$=l[u-1];break;case 285:this.$=new d.Column({columid:l[u],tableid:l[u-2],databaseid:l[u-4]});break;case 286:this.$=new d.Column({columnid:l[u],tableid:l[u-2]});break;case 287:this.$=new d.Column({columnid:l[u],tableid:"INSERTED"});break;case 288:this.$=new d.Column({columnid:l[u],tableid:"DELETED"});break;case 289:this.$=new d.Column({columnid:l[u]});break;case 290:this.$=new d.Column({columnid:l[u],tableid:l[u-2],databaseid:l[u-4]});break;case 291:this.$=new d.Column({columnid:l[u],tableid:"INSERTED"});break;case 292:this.$=new d.Column({columnid:l[u],tableid:"DELETED"});break;case 293:case 294:this.$=new d.Column({columnid:l[u],tableid:l[u-2]});break;case 295:this.$=new d.Column({columnid:"@"+l[u],tableid:l[u-3]});break;case 296:this.$=new d.Column({columnid:"inserted"});break;case 297:this.$=new d.Column({columnid:"deleted"});break;case 298:this.$=new d.Column({columnid:l[u]});break;case 313:this.$=new d.DomainValueValue;break;case 314:this.$=new d.Json({value:l[u]});break;case 317:case 318:case 319:d.queries||(d.queries=[]),d.queries.push(l[u-1]),l[u-1].queriesidx=d.queries.length,this.$=l[u-1];break;case 320:this.$=l[u];break;case 321:this.$=new d.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 322:this.$=new d.FuncValue({funcid:"CURRENT_DATE"});break;case 323:this.$=new d.JavaScript({value:l[u].substr(2,l[u].length-4)});break;case 324:this.$=new d.JavaScript({value:'alasql.fn["'+l[u-2]+'"] = '+l[u].substr(2,l[u].length-4)});break;case 325:this.$=new d.JavaScript({value:'alasql.aggr["'+l[u-2]+'"] = '+l[u].substr(2,l[u].length-4)});break;case 326:this.$=new d.FuncValue({funcid:l[u],newid:true});break;case 327:this.$=l[u],d.extend(this.$,{newid:true});break;case 328:this.$=new d.Convert({expression:l[u-3]}),d.extend(this.$,l[u-1]);break;case 329:this.$=new d.Convert({expression:l[u-5],style:l[u-1]}),d.extend(this.$,l[u-3]);break;case 330:this.$=new d.Convert({expression:l[u-1]}),d.extend(this.$,l[u-3]);break;case 331:this.$=new d.Convert({expression:l[u-3],style:l[u-1]}),d.extend(this.$,l[u-5]);break;case 338:this.$=new d.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 339:this.$=new d.FuncValue({funcid:"CURRENT_DATE"});break;case 340:l[u-2].length>1&&(l[u-4].toUpperCase()=="MAX"||l[u-4].toUpperCase()=="MIN")?this.$=new d.FuncValue({funcid:l[u-4],args:l[u-2]}):this.$=new d.AggrValue({aggregatorid:l[u-4].toUpperCase(),expression:l[u-2].pop(),over:l[u]});break;case 341:this.$=new d.AggrValue({aggregatorid:l[u-5].toUpperCase(),expression:l[u-2],distinct:true,over:l[u]});break;case 342:this.$=new d.AggrValue({aggregatorid:l[u-5].toUpperCase(),expression:l[u-2],over:l[u]});break;case 343:this.$=new d.AggrValue({aggregatorid:"REDUCE",funcid:"GROUP_CONCAT",expression:l[u-3],order:l[u-2],separator:l[u-1]});break;case 344:this.$=new d.AggrValue({aggregatorid:"REDUCE",funcid:"GROUP_CONCAT",expression:l[u-3],distinct:true,order:l[u-2],separator:l[u-1]});break;case 346:this.$=new d.Over,d.extend(this.$,l[u-2]),d.extend(this.$,l[u-1]);break;case 347:this.$={partition:l[u]};break;case 348:this.$={order:l[u]};break;case 352:var je=l[u].substring(1,l[u].length-1);je=je.replace(/\\n/g,`
|
|
2858
|
-
`).replace(/\\t/g," ").replace(/\\r/g,"\r").replace(/\\\\/g,"\\"),this.$=je;break;case 353:this.$="SUM";break;case 354:this.$="TOTAL";break;case 355:this.$="COUNT";break;case 356:this.$="MIN";break;case 357:case 579:this.$="MAX";break;case 358:this.$="AVG";break;case 359:this.$="FIRST";break;case 360:this.$="LAST";break;case 361:this.$="AGGR";break;case 362:this.$="ARRAY";break;case 363:this.$="GROUP_CONCAT";break;case 364:var g3=l[u-5],K3=l[u-2];K3.length>1&&(g3.toUpperCase()=="MIN"||g3.toUpperCase()=="MAX")?this.$=new d.FuncValue({funcid:g3,args:K3,over:l[u]}):c.aggr[l[u-5]]?this.$=new d.AggrValue({aggregatorid:"REDUCE",funcid:g3,expression:K3[0],args:K3,distinct:l[u-3]=="DISTINCT",over:l[u]}):this.$=new d.FuncValue({funcid:g3,args:K3,over:l[u]});break;case 365:this.$=new d.FuncValue({funcid:l[u-3],over:l[u]});break;case 366:this.$=new d.FuncValue({funcid:"IIF",args:l[u-1]});break;case 367:this.$=new d.FuncValue({funcid:"REPLACE",args:l[u-1]});break;case 368:this.$=new d.FuncValue({funcid:l[u-2]});break;case 369:this.$=new d.FuncValue({funcid:"DATEADD",args:[new d.StringValue({value:l[u-5]}),l[u-3],l[u-1]]});break;case 370:this.$=new d.FuncValue({funcid:"DATEADD",args:[l[u-5],l[u-3],l[u-1]]});break;case 371:this.$=new d.FuncValue({funcid:"DATEDIFF",args:[new d.StringValue({value:l[u-5]}),l[u-3],l[u-1]]});break;case 372:this.$=new d.FuncValue({funcid:"DATEDIFF",args:[l[u-5],l[u-3],l[u-1]]});break;case 373:this.$=new d.FuncValue({funcid:"TIMESTAMPDIFF",args:[new d.StringValue({value:l[u-5]}),l[u-3],l[u-1]]});break;case 374:this.$=new d.FuncValue({funcid:"INTERVAL",args:[l[u-1],new d.StringValue({value:l[u].toLowerCase()})]});break;case 376:l[u-2].push(l[u]),this.$=l[u-2];break;case 377:this.$=new d.NumValue({value:+l[u]});break;case 378:this.$=new d.LogicValue({value:true});break;case 379:this.$=new d.LogicValue({value:false});break;case 380:this.$=new d.StringValue({value:l[u].substr(1,l[u].length-2).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 381:this.$=new d.StringValue({value:l[u].substr(2,l[u].length-3).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 382:this.$=new d.NullValue({value:void 0});break;case 383:this.$=new d.VarValue({variable:l[u]});break;case 384:d.exists||(d.exists=[]),this.$=new d.ExistsValue({value:l[u-1],existsidx:d.exists.length}),d.exists.push(l[u-1]);break;case 385:this.$=new d.ArrayValue({value:l[u-1]});break;case 386:case 387:this.$=new d.ParamValue({param:l[u]});break;case 388:typeof d.question>"u"&&(d.question=0),this.$=new d.ParamValue({param:d.question++});break;case 389:typeof d.question>"u"&&(d.question=0),this.$=new d.ParamValue({param:d.question++,array:true});break;case 390:this.$=new d.CaseValue({expression:l[u-3],whens:l[u-2],elses:l[u-1]});break;case 391:this.$=new d.CaseValue({whens:l[u-2],elses:l[u-1]});break;case 392:case 741:case 742:this.$=l[u-1],this.$.push(l[u]);break;case 394:this.$={when:l[u-2],then:l[u]};break;case 397:case 398:this.$=new d.Op({left:l[u-2],op:"REGEXP",right:l[u]});break;case 399:this.$=new d.Op({left:l[u-2],op:"GLOB",right:l[u]});break;case 400:this.$=new d.Op({left:l[u-2],op:"LIKE",right:l[u]});break;case 401:this.$=new d.Op({left:l[u-4],op:"LIKE",right:l[u-2],escape:l[u]});break;case 402:this.$=new d.Op({left:l[u-2],op:"NOT LIKE",right:l[u]});break;case 403:this.$=new d.Op({left:l[u-4],op:"NOT LIKE",right:l[u-2],escape:l[u]});break;case 404:this.$=new d.Op({left:l[u-2],op:"||",right:l[u]});break;case 405:this.$=new d.Op({left:l[u-2],op:"+",right:l[u]});break;case 406:this.$=new d.Op({left:l[u-2],op:"-",right:l[u]});break;case 407:this.$=new d.Op({left:l[u-2],op:"*",right:l[u]});break;case 408:this.$=new d.Op({left:l[u-2],op:"/",right:l[u]});break;case 409:this.$=new d.Op({left:l[u-2],op:"%",right:l[u]});break;case 410:this.$=new d.Op({left:l[u-2],op:"^",right:l[u]});break;case 411:this.$=new d.Op({left:l[u-2],op:">>",right:l[u]});break;case 412:this.$=new d.Op({left:l[u-2],op:"<<",right:l[u]});break;case 413:this.$=new d.Op({left:l[u-2],op:"&",right:l[u]});break;case 414:this.$=new d.Op({left:l[u-2],op:"|",right:l[u]});break;case 415:case 416:case 418:this.$=new d.Op({left:l[u-2],op:"->",right:l[u]});break;case 417:this.$=new d.Op({left:l[u-4],op:"->",right:l[u-1]});break;case 419:case 420:case 422:this.$=new d.Op({left:l[u-2],op:"!",right:l[u]});break;case 421:this.$=new d.Op({left:l[u-4],op:"!",right:l[u-1]});break;case 423:this.$=new d.Op({left:l[u-2],op:">",right:l[u]});break;case 424:this.$=new d.Op({left:l[u-2],op:">=",right:l[u]});break;case 425:this.$=new d.Op({left:l[u-2],op:"<",right:l[u]});break;case 426:this.$=new d.Op({left:l[u-2],op:"<=",right:l[u]});break;case 427:this.$=new d.Op({left:l[u-2],op:"=",right:l[u]});break;case 428:this.$=new d.Op({left:l[u-2],op:"==",right:l[u]});break;case 429:this.$=new d.Op({left:l[u-2],op:"===",right:l[u]});break;case 430:this.$=new d.Op({left:l[u-2],op:"!=",right:l[u]});break;case 431:this.$=new d.Op({left:l[u-2],op:"!==",right:l[u]});break;case 432:this.$=new d.Op({left:l[u-2],op:"!===",right:l[u]});break;case 433:d.queries||(d.queries=[]);var E3=d.queries.slice();d.queries=[],E3.length>0&&(l[u-1].queries=E3),d.queries.push(l[u-1]),this.$=new d.Op({left:l[u-5],op:l[u-4],allsome:l[u-3],right:l[u-1],queriesidx:d.queries.length-1});break;case 434:this.$=new d.Op({left:l[u-5],op:l[u-4],allsome:l[u-3],right:l[u-1]});break;case 435:l[u-2].op=="BETWEEN1"?l[u-2].left.op=="AND"?this.$=new d.Op({left:l[u-2].left.left,op:"AND",right:new d.Op({left:l[u-2].left.right,op:"BETWEEN",right1:l[u-2].right,right2:l[u]})}):this.$=new d.Op({left:l[u-2].left,op:"BETWEEN",right1:l[u-2].right,right2:l[u]}):l[u-2].op=="NOT BETWEEN1"?l[u-2].left.op=="AND"?this.$=new d.Op({left:l[u-2].left.left,op:"AND",right:new d.Op({left:l[u-2].left.right,op:"NOT BETWEEN",right1:l[u-2].right,right2:l[u]})}):this.$=new d.Op({left:l[u-2].left,op:"NOT BETWEEN",right1:l[u-2].right,right2:l[u]}):this.$=new d.Op({left:l[u-2],op:"AND",right:l[u]});break;case 436:this.$=new d.Op({left:l[u-2],op:"OR",right:l[u]});break;case 437:this.$=new d.UniOp({op:"NOT",right:l[u]});break;case 438:this.$=new d.UniOp({op:"-",right:l[u]});break;case 439:this.$=new d.UniOp({op:"+",right:l[u]});break;case 440:this.$=new d.UniOp({op:"~",right:l[u]});break;case 441:this.$=new d.UniOp({op:"#",right:l[u]});break;case 442:this.$=new d.UniOp({right:l[u-1]});break;case 443:d.queries||(d.queries=[]);var E3=d.queries.slice();d.queries=[],E3.length>0&&(l[u-1].queries=E3),d.queries.push(l[u-1]),this.$=new d.Op({left:l[u-4],op:"IN",right:l[u-1],queriesidx:d.queries.length-1});break;case 444:d.queries||(d.queries=[]);var E3=d.queries.slice();d.queries=[],E3.length>0&&(l[u-1].queries=E3),d.queries.push(l[u-1]),this.$=new d.Op({left:l[u-5],op:"NOT IN",right:l[u-1],queriesidx:d.queries.length-1});break;case 445:this.$=new d.Op({left:l[u-4],op:"IN",right:l[u-1]});break;case 446:this.$=new d.Op({left:l[u-5],op:"NOT IN",right:l[u-1]});break;case 447:this.$=new d.Op({left:l[u-3],op:"IN",right:[]});break;case 448:this.$=new d.Op({left:l[u-4],op:"NOT IN",right:[]});break;case 449:case 451:this.$=new d.Op({left:l[u-2],op:"IN",right:l[u]});break;case 450:case 452:this.$=new d.Op({left:l[u-3],op:"NOT IN",right:l[u]});break;case 453:this.$=new d.Op({left:l[u-2],op:"BETWEEN1",right:l[u]});break;case 454:this.$=new d.Op({left:l[u-2],op:"NOT BETWEEN1",right:l[u]});break;case 455:this.$=new d.Op({op:"IS",left:l[u-2],right:l[u]});break;case 456:this.$=new d.Op({op:"IS",left:l[u-2],right:new d.UniOp({op:"NOT",right:new d.NullValue({value:void 0})})});break;case 457:this.$=new d.Convert({expression:l[u-2]}),d.extend(this.$,l[u]);break;case 458:case 459:this.$=l[u];break;case 460:this.$=l[u-1];break;case 467:this.$="ALL";break;case 468:this.$="SOME";break;case 469:this.$="ANY";break;case 470:this.$=new d.Update({table:l[u-5],columns:l[u-3],where:l[u-1]}),d.extend(this.$,l[u]);break;case 471:this.$=new d.Update({table:l[u-3],columns:l[u-1]}),d.extend(this.$,l[u]);break;case 474:this.$=new d.SetColumn({column:l[u-2],expression:l[u]});break;case 475:this.$=new d.SetColumn({variable:l[u-2],expression:l[u],method:l[u-3]});break;case 476:this.$=new d.Delete({table:l[u-3],where:l[u-1]}),d.extend(this.$,l[u]);break;case 477:this.$=new d.Delete({table:l[u-1]}),d.extend(this.$,l[u]);break;case 478:this.$=new d.Insert({into:l[u-3],values:l[u-1]}),d.extend(this.$,l[u]);break;case 479:this.$=new d.Insert({into:l[u-2],values:l[u-1]}),d.extend(this.$,l[u]);break;case 480:this.$=new d.Insert({into:l[u-3],values:l[u-1],ignore:true}),d.extend(this.$,l[u]);break;case 481:this.$=new d.Insert({into:l[u-2],values:l[u-1],ignore:true}),d.extend(this.$,l[u]);break;case 482:this.$=new d.Insert({into:l[u-6],columns:l[u-4],values:l[u-1],ignore:true}),d.extend(this.$,l[u]);break;case 483:this.$=new d.Insert({into:l[u-5],columns:l[u-3],values:l[u-1],ignore:true}),d.extend(this.$,l[u]);break;case 484:this.$=new d.Insert({into:l[u-2],select:l[u-1],ignore:true}),d.extend(this.$,l[u]);break;case 485:this.$=new d.Insert({into:l[u-5],columns:l[u-3],select:l[u-1],ignore:true}),d.extend(this.$,l[u]);break;case 486:case 488:this.$=new d.Insert({into:l[u-3],values:l[u-1],orreplace:true}),d.extend(this.$,l[u]);break;case 487:case 489:this.$=new d.Insert({into:l[u-2],values:l[u-1],orreplace:true}),d.extend(this.$,l[u]);break;case 490:this.$=new d.Insert({into:l[u-3],default:true}),d.extend(this.$,l[u]);break;case 491:this.$=new d.Insert({into:l[u-6],columns:l[u-4],values:l[u-1]}),d.extend(this.$,l[u]);break;case 492:this.$=new d.Insert({into:l[u-5],columns:l[u-3],values:l[u-1]}),d.extend(this.$,l[u]);break;case 493:this.$=new d.Insert({into:l[u-2],select:l[u-1]}),d.extend(this.$,l[u]);break;case 494:this.$=new d.Insert({into:l[u-2],select:l[u-1],orreplace:true}),d.extend(this.$,l[u]);break;case 495:this.$=new d.Insert({into:l[u-5],columns:l[u-3],select:l[u-1]}),d.extend(this.$,l[u]);break;case 496:this.$=new d.Insert({into:l[u-3],setcolumns:l[u-1]}),d.extend(this.$,l[u]);break;case 501:this.$=[l[u-1]];break;case 504:this.$=l[u-4],l[u-4].push(l[u-1]);break;case 505:case 506:case 508:case 516:this.$=l[u-2],l[u-2].push(l[u]);break;case 517:this.$=new d.CreateTable({table:l[u-4]}),d.extend(this.$,l[u-7]),d.extend(this.$,l[u-6]),d.extend(this.$,l[u-5]),d.extend(this.$,l[u-2]),d.extend(this.$,l[u]);break;case 518:this.$=new d.CreateTable({table:l[u]}),d.extend(this.$,l[u-3]),d.extend(this.$,l[u-2]),d.extend(this.$,l[u-1]);break;case 520:this.$={class:true};break;case 530:this.$={temporary:true};break;case 532:this.$={ifnotexists:true};break;case 533:this.$={columns:l[u-2],constraints:l[u]};break;case 534:this.$={columns:l[u]};break;case 535:this.$={as:l[u]};break;case 536:case 567:this.$=[l[u]];break;case 538:case 539:case 540:case 541:case 542:l[u].constraintid=l[u-1],this.$=l[u];break;case 545:this.$={type:"CHECK",expression:l[u-1]};break;case 546:this.$={type:"PRIMARY KEY",columns:l[u-1],clustered:(l[u-3]+"").toUpperCase()};break;case 547:this.$={type:"FOREIGN KEY",columns:l[u-5],fktable:l[u-2],fkcolumns:l[u-1]},d.extend(this.$,l[u]);break;case 549:this.$={};break;case 550:this.$={ondelete:l[u]};break;case 551:this.$={onupdate:l[u]};break;case 552:this.$={ondelete:l[u-1],onupdate:l[u]};break;case 553:this.$={ondelete:l[u],onupdate:l[u-1]};break;case 554:case 555:this.$=l[u];break;case 556:this.$="CASCADE";break;case 557:this.$="SET NULL";break;case 558:this.$="SET DEFAULT";break;case 559:this.$="RESTRICT";break;case 560:this.$="NO ACTION";break;case 561:this.$={type:"UNIQUE",columns:l[u-1],clustered:(l[u-3]+"").toUpperCase()};break;case 562:this.$={type:"INDEX",indexid:l[u-3],columns:l[u-1]};break;case 569:this.$=new d.ColumnDef({columnid:l[u-2]}),d.extend(this.$,l[u-1]),d.extend(this.$,l[u]);break;case 570:this.$=new d.ColumnDef({columnid:l[u-1]}),d.extend(this.$,l[u]);break;case 571:this.$=new d.ColumnDef({columnid:l[u],dbtypeid:""});break;case 572:this.$={dbtypeid:l[u-5],dbsize:l[u-3],dbprecision:+l[u-1]};break;case 573:this.$={dbtypeid:l[u-3],dbsize:l[u-1]};break;case 574:this.$={dbtypeid:l[u]};break;case 575:this.$={dbtypeid:"ENUM",enumvalues:l[u-1]};break;case 576:this.$=l[u-1],l[u-1].dbtypeid+="["+l[u]+"]";break;case 578:case 792:this.$=+l[u];break;case 580:this.$=void 0;break;case 582:d.extend(l[u-1],l[u]),this.$=l[u-1];break;case 585:this.$={primarykey:true};break;case 586:case 587:this.$={foreignkey:{table:l[u-2],columnid:l[u-1]}},d.extend(this.$.foreignkey,l[u]);break;case 588:this.$={identity:{value:l[u-3],step:l[u-1]}};break;case 589:this.$={identity:{value:1,step:1}};break;case 590:case 592:this.$={default:l[u]};break;case 591:this.$={default:l[u-1]};break;case 593:this.$={null:true};break;case 594:this.$={notnull:true};break;case 595:this.$={check:l[u]};break;case 596:this.$={unique:true};break;case 597:this.$={onupdate:l[u]};break;case 598:this.$={onupdate:l[u-1]};break;case 599:this.$=new d.DropTable({tables:l[u],type:l[u-2]}),d.extend(this.$,l[u-1]);break;case 603:this.$={ifexists:true};break;case 604:this.$=new d.AlterTable({table:l[u-3],renameto:l[u]});break;case 605:this.$=new d.AlterTable({table:l[u-3],addcolumn:l[u]});break;case 606:this.$=new d.AlterTable({table:l[u-3],modifycolumn:l[u]});break;case 607:this.$=new d.AlterTable({table:l[u-5],renamecolumn:l[u-2],to:l[u]});break;case 608:this.$=new d.AlterTable({table:l[u-3],dropcolumn:l[u]});break;case 609:this.$=new d.AlterTable({table:l[u-2],renameto:l[u]});break;case 610:this.$=new d.AttachDatabase({databaseid:l[u],engineid:l[u-2].toUpperCase()});break;case 611:this.$=new d.AttachDatabase({databaseid:l[u-3],engineid:l[u-5].toUpperCase(),args:l[u-1]});break;case 612:this.$=new d.AttachDatabase({databaseid:l[u-2],engineid:l[u-4].toUpperCase(),as:l[u]});break;case 613:this.$=new d.AttachDatabase({databaseid:l[u-5],engineid:l[u-7].toUpperCase(),as:l[u],args:l[u-3]});break;case 614:this.$=new d.DetachDatabase({databaseid:l[u]});break;case 615:this.$=new d.CreateDatabase({databaseid:l[u]}),d.extend(this.$,l[u]);break;case 616:this.$=new d.CreateDatabase({engineid:l[u-4].toUpperCase(),databaseid:l[u-1],as:l[u]}),d.extend(this.$,l[u-2]);break;case 617:this.$=new d.CreateDatabase({engineid:l[u-7].toUpperCase(),databaseid:l[u-4],args:l[u-2],as:l[u]}),d.extend(this.$,l[u-5]);break;case 618:this.$=new d.CreateDatabase({engineid:l[u-4].toUpperCase(),as:l[u],args:[l[u-1]]}),d.extend(this.$,l[u-2]);break;case 619:this.$=void 0;break;case 621:case 622:this.$=new d.UseDatabase({databaseid:l[u]});break;case 623:this.$=new d.DropDatabase({databaseid:l[u]}),d.extend(this.$,l[u-1]);break;case 624:case 625:this.$=new d.DropDatabase({databaseid:l[u],engineid:l[u-3].toUpperCase()}),d.extend(this.$,l[u-1]);break;case 626:this.$=new d.CreateIndex({indexid:l[u-5],table:l[u-3],columns:l[u-1]});break;case 627:this.$=new d.CreateIndex({indexid:l[u-5],table:l[u-3],columns:l[u-1],unique:true});break;case 628:this.$=new d.DropIndex({indexid:l[u]});break;case 629:this.$=new d.ShowDatabases;break;case 630:this.$=new d.ShowDatabases({like:l[u]});break;case 631:this.$=new d.ShowDatabases({engineid:l[u-1].toUpperCase()});break;case 632:this.$=new d.ShowDatabases({engineid:l[u-3].toUpperCase(),like:l[u]});break;case 633:this.$=new d.ShowTables;break;case 634:this.$=new d.ShowTables({like:l[u]});break;case 635:this.$=new d.ShowTables({databaseid:l[u]});break;case 636:this.$=new d.ShowTables({like:l[u],databaseid:l[u-2]});break;case 637:this.$=new d.ShowColumns({table:l[u]});break;case 638:this.$=new d.ShowColumns({table:l[u-2],databaseid:l[u]});break;case 639:this.$=new d.ShowIndex({table:l[u]});break;case 640:this.$=new d.ShowIndex({table:l[u-2],databaseid:l[u]});break;case 641:this.$=new d.ShowCreateTable({table:l[u]});break;case 642:this.$=new d.ShowCreateTable({table:l[u-2],databaseid:l[u]});break;case 643:this.$=new d.CreateTable({table:l[u-6],view:true,select:l[u-1],viewcolumns:l[u-4]}),d.extend(this.$,l[u-9]),d.extend(this.$,l[u-7]);break;case 644:this.$=new d.CreateTable({table:l[u-3],view:true,select:l[u-1]}),d.extend(this.$,l[u-6]),d.extend(this.$,l[u-4]);break;case 648:this.$=new d.DropTable({tables:l[u],view:true}),d.extend(this.$,l[u-1]);break;case 649:case 802:this.$=new d.ExpressionStatement({expression:l[u]});break;case 650:this.$=new d.Source({url:l[u].value});break;case 651:this.$=new d.Assert({value:l[u]});break;case 652:this.$=new d.Assert({value:l[u].value});break;case 653:this.$=new d.Assert({value:l[u],message:l[u-2]});break;case 655:case 667:case 669:this.$=l[u].value;break;case 656:case 664:this.$=+l[u].value;break;case 657:this.$=!!l[u].value;break;case 665:this.$=-l[u].value;break;case 666:this.$=""+l[u].value;break;case 675:this.$={};break;case 678:this.$=[];break;case 679:d.extend(l[u-2],l[u]),this.$=l[u-2];break;case 681:this.$={},this.$[l[u-2].substr(1,l[u-2].length-2)]=l[u];break;case 682:case 683:this.$={},this.$[l[u-2]]=l[u];break;case 684:this.$={},this.$[l[u-2].substr(1,l[u-2].length-2)]=-l[u].value;break;case 685:case 686:this.$={},this.$[l[u-2]]=-l[u].value;break;case 689:this.$=new d.SetVariable({variable:l[u-2].toLowerCase(),value:l[u]});break;case 690:this.$=new d.SetVariable({variable:l[u-1].toLowerCase(),value:l[u]});break;case 691:this.$=new d.SetVariable({variable:l[u-2],expression:l[u]});break;case 692:this.$=new d.SetVariable({variable:l[u-3],props:l[u-2],expression:l[u]});break;case 693:this.$=new d.SetVariable({variable:l[u-2],expression:l[u],method:l[u-3]});break;case 694:this.$=new d.SetVariable({variable:l[u-3],props:l[u-2],expression:l[u],method:l[u-4]});break;case 695:this.$="@";break;case 696:this.$="$";break;case 702:this.$=true;break;case 703:this.$=false;break;case 704:this.$=new d.CommitTransaction;break;case 705:this.$=new d.RollbackTransaction;break;case 706:this.$=new d.BeginTransaction;break;case 707:this.$=new d.If({expression:l[u-2],thenstat:l[u-1],elsestat:l[u]}),l[u-1].exists&&(this.$.exists=l[u-1].exists),l[u-1].queries&&(this.$.queries=l[u-1].queries);break;case 708:this.$=new d.If({expression:l[u-1],thenstat:l[u]}),l[u].exists&&(this.$.exists=l[u].exists),l[u].queries&&(this.$.queries=l[u].queries);break;case 709:this.$=l[u];break;case 710:this.$=new d.While({expression:l[u-1],loopstat:l[u]}),l[u].exists&&(this.$.exists=l[u].exists),l[u].queries&&(this.$.queries=l[u].queries);break;case 711:case 712:this.$=new d.Continue;break;case 713:case 714:this.$=new d.Break;break;case 715:this.$=new d.BeginEnd({statements:l[u-1]});break;case 716:this.$=new d.Print({exprs:l[u]});break;case 717:this.$=new d.Print({select:l[u]});break;case 718:this.$=new d.Require({paths:l[u]});break;case 719:this.$=new d.Require({plugins:l[u]});break;case 720:case 721:this.$=l[u].toUpperCase();break;case 722:this.$=new d.Echo({expr:l[u]});break;case 727:this.$=new d.Declare({declares:l[u]});break;case 730:this.$={variable:l[u-1]},d.extend(this.$,l[u]);break;case 731:this.$={variable:l[u-2]},d.extend(this.$,l[u]);break;case 732:this.$={variable:l[u-3],expression:l[u]},d.extend(this.$,l[u-2]);break;case 733:this.$={variable:l[u-4],expression:l[u]},d.extend(this.$,l[u-2]);break;case 734:this.$=new d.TruncateTable({table:l[u]});break;case 735:this.$=new d.Merge,d.extend(this.$,l[u-4]),d.extend(this.$,l[u-3]),d.extend(this.$,l[u-2]),d.extend(this.$,{matches:l[u-1]}),d.extend(this.$,l[u]);break;case 736:case 737:this.$={into:l[u]};break;case 740:this.$={on:l[u]};break;case 745:this.$={matched:true,action:l[u]};break;case 746:this.$={matched:true,expr:l[u-2],action:l[u]};break;case 747:this.$={delete:true};break;case 748:this.$={update:l[u]};break;case 749:case 750:this.$={matched:false,bytarget:true,action:l[u]};break;case 751:case 752:this.$={matched:false,bytarget:true,expr:l[u-2],action:l[u]};break;case 753:this.$={matched:false,bysource:true,action:l[u]};break;case 754:this.$={matched:false,bysource:true,expr:l[u-2],action:l[u]};break;case 755:this.$={insert:true,values:l[u]};break;case 756:this.$={insert:true,values:l[u],columns:l[u-3]};break;case 757:this.$={insert:true,defaultvalues:true};break;case 758:this.$={insert:true,defaultvalues:true,columns:l[u-3]};break;case 760:this.$={output:{columns:l[u]}};break;case 761:this.$={output:{columns:l[u-3],intovar:l[u],method:l[u-1]}};break;case 762:this.$={output:{columns:l[u-2],intotable:l[u]}};break;case 763:this.$={output:{columns:l[u-5],intotable:l[u-3],intocolumns:l[u-1]}};break;case 764:this.$=new d.CreateVertex({class:l[u-3],sharp:l[u-2],name:l[u-1]}),d.extend(this.$,l[u]);break;case 767:this.$={sets:l[u]};break;case 768:this.$={content:l[u]};break;case 769:this.$={select:l[u]};break;case 770:this.$=new d.CreateEdge({from:l[u-3],to:l[u-1],name:l[u-5]}),d.extend(this.$,l[u]);break;case 771:this.$=new d.CreateGraph({graph:l[u]});break;case 772:this.$=new d.CreateGraph({from:l[u]});break;case 775:this.$=l[u-2],l[u-1]&&(this.$.json=new d.Json({value:l[u-1]})),l[u]&&(this.$.as=l[u]);break;case 776:this.$={source:l[u-6],target:l[u]},l[u-3]&&(this.$.json=new d.Json({value:l[u-3]})),l[u-2]&&(this.$.as=l[u-2]),d.extend(this.$,l[u-4]);break;case 777:this.$={source:l[u-5],target:l[u]},l[u-2]&&(this.$.json=new d.Json({value:l[u-3]})),l[u-1]&&(this.$.as=l[u-2]);break;case 778:this.$={source:l[u-2],target:l[u]};break;case 782:this.$={vars:l[u],method:l[u-1]};break;case 785:case 786:var dr=l[u-1];this.$={prop:l[u-3],sharp:l[u-2],name:typeof dr>"u"?void 0:dr.substr(1,dr.length-2),class:l[u]};break;case 787:var pr=l[u-1];this.$={sharp:l[u-2],name:typeof pr>"u"?void 0:pr.substr(1,pr.length-2),class:l[u]};break;case 788:var yt=l[u-1];this.$={name:typeof yt>"u"?void 0:yt.substr(1,yt.length-2),class:l[u]};break;case 789:this.$={class:l[u]};break;case 795:this.$=new d.AddRule({left:l[u-2],right:l[u]});break;case 796:this.$=new d.AddRule({right:l[u]});break;case 799:this.$={termid:l[u]};break;case 800:this.$={termid:l[u-3],args:l[u-1]};break;case 803:this.$=new d.CreateTrigger({trigger:l[u-6],when:l[u-5],action:l[u-4],table:l[u-2],statement:l[u]}),l[u].exists&&(this.$.exists=l[u].exists),l[u].queries&&(this.$.queries=l[u].queries);break;case 804:this.$=new d.CreateTrigger({trigger:l[u-5],when:l[u-4],action:l[u-3],table:l[u-1],funcid:l[u]});break;case 805:this.$=new d.CreateTrigger({trigger:l[u-6],when:l[u-4],action:l[u-3],table:l[u-5],statement:l[u]}),l[u].exists&&(this.$.exists=l[u].exists),l[u].queries&&(this.$.queries=l[u].queries);break;case 806:case 807:case 809:this.$="AFTER";break;case 808:this.$="BEFORE";break;case 810:this.$="INSTEADOF";break;case 811:this.$="INSERT";break;case 812:this.$="DELETE";break;case 813:this.$="UPDATE";break;case 814:this.$=new d.DropTrigger({trigger:l[u]});break;case 815:this.$=new d.Reindex({indexid:l[u]});break;case 1095:case 1119:case 1121:case 1123:case 1127:case 1129:case 1131:case 1133:case 1135:case 1137:this.$=[];break;case 1096:case 1114:case 1116:case 1120:case 1122:case 1124:case 1128:case 1130:case 1132:case 1134:case 1136:case 1138:l[u-1].push(l[u]);break;case 1113:case 1115:this.$=[l[u]];break}},table:[e([14,639,798],n,{12:1,13:2,16:3,17:4,21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,2:t,4:r,5:i,6:s,7:a,8:o,9:f,18:m,57:E,76:p,82:h,96:g,133:A,155:v,165:T,198:O,294:b,295:C1,322:C,368:a1,372:r1,373:j,433:i1,437:k1,438:W1,441:z1,443:R,445:M1,446:ee,454:_1,455:X1,466:Se,472:Ie,474:Xe,475:Ve,477:we,478:Ge,479:Me,480:Ze,481:Re,482:Oe,483:Pe,487:He,488:o3,491:v3,492:k3,545:I3,546:w3,555:_3}),{1:[3]},{14:[1,113],15:114,639:gi,798:Ei},e(U3,[2,12]),e(U3,[2,13]),e(B,[2,16]),e(U3,n,{21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,16:117,2:t,4:r,5:i,6:s,7:a,8:o,9:f,19:[1,118],57:E,76:p,82:h,96:g,133:A,155:v,165:T,198:O,294:b,295:C1,322:C,368:a1,372:r1,373:j,433:i1,437:k1,438:W1,441:z1,443:R,445:M1,446:ee,454:_1,455:X1,466:Se,472:Ie,474:Xe,475:Ve,477:we,478:Ge,479:Me,480:Ze,481:Re,482:Oe,483:Pe,487:He,488:o3,491:v3,492:k3,545:I3,546:w3,555:_3}),e(B,[2,18]),e(B,[2,19]),e(B,[2,20]),e(B,[2,21]),e(B,[2,22]),e(B,[2,23]),e(B,[2,24]),e(B,[2,25]),e(B,[2,26]),e(B,[2,27]),e(B,[2,28]),e(B,[2,29]),e(B,[2,30]),e(B,[2,31]),e(B,[2,32]),e(B,[2,33]),e(B,[2,34]),e(B,[2,35]),e(B,[2,36]),e(B,[2,37]),e(B,[2,38]),e(B,[2,39]),e(B,[2,40]),e(B,[2,41]),e(B,[2,42]),e(B,[2,43]),e(B,[2,44]),e(B,[2,45]),e(B,[2,46]),e(B,[2,47]),e(B,[2,48]),e(B,[2,49]),e(B,[2,50]),e(B,[2,51]),e(B,[2,52]),e(B,[2,53]),e(B,[2,54]),e(B,[2,55]),e(B,[2,56]),e(B,[2,57]),e(B,[2,58]),e(B,[2,59]),e(B,[2,60]),e(B,[2,61]),e(B,[2,62]),e(B,[2,63]),e(B,[2,64]),e(B,[2,65]),e(B,[2,66]),e(B,[2,67]),e(B,[2,68]),e(B,[2,69]),e(B,[2,70]),e(B,[2,71]),{388:[1,119]},{2:t,3:120,4:r,5:i,6:s,7:a,8:o,9:f},{2:t,3:122,4:r,5:i,6:s,7:a,8:o,9:f,165:V,209:121,293:$e,322:J,323:M,324:U,325:F,326:P},e(mi,[2,529],{3:131,383:135,2:t,4:r,5:i,6:s,7:a,8:o,9:f,143:vi,144:Si,196:[1,133],202:[1,132],296:[1,139],297:[1,140],392:[1,141],442:[1,130],511:[1,134],547:[1,138]}),{154:Ti,489:142,490:143},{192:[1,145]},{442:[1,146]},{2:t,3:148,4:r,5:i,6:s,7:a,8:o,9:f,139:[1,154],202:[1,149],388:[1,153],434:150,442:[1,147],447:[1,151],547:[1,152]},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:155,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(Et,Kt,{374:219,180:[1,221],207:qt,377:[1,220]}),e(Et,Kt,{374:223,207:qt}),{2:t,3:235,4:r,5:i,6:s,7:a,8:o,9:f,82:Ar,141:z3,152:w,153:228,154:n1,161:_,165:V,190:x,207:[1,226],208:229,209:231,210:230,211:232,218:225,227:233,229:Z3,293:$e,322:J,323:M,324:U,325:F,326:P,335:D,456:204,457:I,461:k,493:224},{2:t,3:237,4:r,5:i,6:s,7:a,8:o,9:f},{388:[1,238]},e(Qt,[2,1091],{86:239,115:240,116:Ai}),e(it,on,{92:242,260:243,171:ln,177:un,178:fn}),e(Ni,[2,1095],{97:247}),{2:t,3:251,4:r,5:i,6:s,7:a,8:o,9:f,199:[1,249],202:[1,252],295:[1,248],388:[1,253],442:[1,250]},{388:[1,254]},{2:t,3:258,4:r,5:i,6:s,7:a,8:o,9:f,77:255,79:256,80:[1,257]},e([339,639,798],n,{16:3,17:4,21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,13:260,2:t,4:r,5:i,6:s,7:a,8:o,9:f,18:m,57:E,76:p,82:h,96:g,133:A,155:v,165:T,198:O,294:b,295:C1,322:C,368:a1,372:r1,373:j,433:i1,437:k1,438:W1,441:z1,443:R,445:M1,446:ee,454:_1,455:X1,466:Se,472:Ie,473:[1,259],474:Xe,475:Ve,477:we,478:Ge,479:Me,480:Ze,481:Re,482:Oe,483:Pe,487:He,488:o3,491:v3,492:k3,545:I3,546:w3,555:_3}),{473:[1,261]},{473:[1,262]},{2:t,3:264,4:r,5:i,6:s,7:a,8:o,9:f,442:[1,263]},{2:t,3:268,4:r,5:i,6:s,7:a,8:o,9:f,152:w,161:_,190:x,208:266,210:267,231:265,335:D},e(he,[2,323]),{122:269,141:y,329:G},{2:t,3:122,4:r,5:i,6:s,7:a,8:o,9:f,122:275,140:L,141:[1,272],152:w,153:270,154:Ye,161:_,165:V,190:x,205:274,209:279,210:278,284:276,285:277,292:cn,293:hn,302:271,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,335:D,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:282,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(B,[2,711]),e(B,[2,712]),e(B,[2,713]),e(B,[2,714]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,44:284,60:175,82:F3,85:75,95:76,96:g,104:285,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,160:283,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,193:102,198:O,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:292,4:r,5:i,6:s,7:a,8:o,9:f,122:289,141:y,329:G,484:287,485:288,486:290,487:Oi},{2:t,3:293,4:r,5:i,6:s,7:a,8:o,9:f,152:P3,154:G3,469:294},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:297,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{466:[1,298]},{2:t,3:104,4:r,5:i,6:s,7:a,8:o,9:f,543:300,544:299},{2:t,3:122,4:r,5:i,6:s,7:a,8:o,9:f,165:V,209:301,293:$e,322:J,323:M,324:U,325:F,326:P},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:302,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(zt,Nr,{195:306,173:[1,305],194:[1,303],196:[1,304],204:Or}),{44:308,82:h,85:75,95:76,96:g,193:102,198:O},e(Ci,[2,799],{82:[1,309]}),e([2,4,5,6,7,8,9,14,76,82,83,103,108,116,127,137,140,141,146,152,154,161,163,165,171,173,177,178,188,189,190,192,194,196,204,207,229,252,266,267,271,273,281,292,293,294,298,299,301,304,313,314,315,316,317,318,319,320,322,323,324,325,326,327,328,329,330,331,332,335,336,339,343,345,350,457,461,503,639,798],[2,162],{158:[1,310],159:[1,311],199:[1,312],200:[1,313],201:[1,314],202:[1,315],203:[1,316]}),e(N,[2,1]),e(N,[2,2]),e(N,[2,3]),e(N,[2,4]),e(N,[2,5]),e(N,[2,6]),{6:[1,434],7:[1,473],8:[1,350],9:[1,533],10:317,127:[1,476],140:[1,469],181:[1,494],229:[1,426],265:[1,468],266:[1,402],267:[1,437],271:[1,441],281:[1,383],377:[1,417],415:[1,340],416:[1,511],418:[1,322],439:[1,324],447:[1,582],451:[1,503],453:[1,474],454:[1,542],471:[1,472],473:[1,558],478:[1,370],499:[1,448],503:[1,480],509:[1,369],552:[1,334],553:[1,326],554:[1,429],556:[1,318],557:[1,319],558:[1,320],559:[1,321],560:[1,323],561:[1,325],562:[1,327],563:[1,328],564:[1,329],565:[1,330],566:[1,331],567:[1,332],568:[1,333],569:[1,335],570:[1,336],571:[1,337],572:[1,338],573:[1,339],574:[1,341],575:[1,342],576:[1,343],577:[1,344],578:[1,345],579:[1,346],580:[1,347],581:[1,348],582:[1,349],583:[1,351],584:[1,352],585:[1,353],586:[1,354],587:[1,355],588:[1,356],589:[1,357],590:[1,358],591:[1,359],592:[1,360],593:[1,361],594:[1,362],595:[1,363],596:[1,364],597:[1,365],598:[1,366],599:[1,367],600:[1,368],601:[1,371],602:[1,372],603:[1,373],604:[1,374],605:[1,375],606:[1,376],607:[1,377],608:[1,378],609:[1,379],610:[1,380],611:[1,381],612:[1,382],613:[1,384],614:[1,385],615:[1,386],616:[1,387],617:[1,388],618:[1,389],619:[1,390],620:[1,391],621:[1,392],622:[1,393],623:[1,394],624:[1,395],625:[1,396],626:[1,397],627:[1,398],628:[1,399],629:[1,400],630:[1,401],631:[1,403],632:[1,404],633:[1,405],634:[1,406],635:[1,407],636:[1,408],637:[1,409],638:[1,410],639:[1,411],640:[1,412],641:[1,413],642:[1,414],643:[1,415],644:[1,416],645:[1,418],646:[1,419],647:[1,420],648:[1,421],649:[1,422],650:[1,423],651:[1,424],652:[1,425],653:[1,427],654:[1,428],655:[1,430],656:[1,431],657:[1,432],658:[1,433],659:[1,435],660:[1,436],661:[1,438],662:[1,439],663:[1,440],664:[1,442],665:[1,443],666:[1,444],667:[1,445],668:[1,446],669:[1,447],670:[1,449],671:[1,450],672:[1,451],673:[1,452],674:[1,453],675:[1,454],676:[1,455],677:[1,456],678:[1,457],679:[1,458],680:[1,459],681:[1,460],682:[1,461],683:[1,462],684:[1,463],685:[1,464],686:[1,465],687:[1,466],688:[1,467],689:[1,470],690:[1,471],691:[1,475],692:[1,477],693:[1,478],694:[1,479],695:[1,481],696:[1,482],697:[1,483],698:[1,484],699:[1,485],700:[1,486],701:[1,487],702:[1,488],703:[1,489],704:[1,490],705:[1,491],706:[1,492],707:[1,493],708:[1,495],709:[1,496],710:[1,497],711:[1,498],712:[1,499],713:[1,500],714:[1,501],715:[1,502],716:[1,504],717:[1,505],718:[1,506],719:[1,507],720:[1,508],721:[1,509],722:[1,510],723:[1,512],724:[1,513],725:[1,514],726:[1,515],727:[1,516],728:[1,517],729:[1,518],730:[1,519],731:[1,520],732:[1,521],733:[1,522],734:[1,523],735:[1,524],736:[1,525],737:[1,526],738:[1,527],739:[1,528],740:[1,529],741:[1,530],742:[1,531],743:[1,532],744:[1,534],745:[1,535],746:[1,536],747:[1,537],748:[1,538],749:[1,539],750:[1,540],751:[1,541],752:[1,543],753:[1,544],754:[1,545],755:[1,546],756:[1,547],757:[1,548],758:[1,549],759:[1,550],760:[1,551],761:[1,552],762:[1,553],763:[1,554],764:[1,555],765:[1,556],766:[1,557],767:[1,559],768:[1,560],769:[1,561],770:[1,562],771:[1,563],772:[1,564],773:[1,565],774:[1,566],775:[1,567],776:[1,568],777:[1,569],778:[1,570],779:[1,571],780:[1,572],781:[1,573],782:[1,574],783:[1,575],784:[1,576],785:[1,577],786:[1,578],787:[1,579],788:[1,580],789:[1,581],790:[1,583],791:[1,584],792:[1,585],793:[1,586],794:[1,587],795:[1,588],796:[1,589],797:[1,590]},{1:[2,10]},e(U3,n,{21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,16:591,2:t,4:r,5:i,6:s,7:a,8:o,9:f,57:E,76:p,82:h,96:g,133:A,155:v,165:T,198:O,294:b,295:C1,322:C,368:a1,372:r1,373:j,433:i1,437:k1,438:W1,441:z1,443:R,445:M1,446:ee,454:_1,455:X1,466:Se,472:Ie,474:Xe,475:Ve,477:we,478:Ge,479:Me,480:Ze,481:Re,482:Oe,483:Pe,487:He,488:o3,491:v3,492:k3,545:I3,546:w3,555:_3}),e(Ri,[2,1089]),e(Ri,[2,1090]),e(U3,[2,14]),{20:[1,592]},{2:t,3:268,4:r,5:i,6:s,7:a,8:o,9:f,208:593},{442:[1,594]},e(B,[2,802]),{82:st},{82:[1,596]},{82:ki},{82:dn},{82:[1,599]},{82:[1,600]},{82:[1,601]},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:602,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(x3,Cr,{385:603,165:Rr}),{442:[1,605]},{2:t,3:606,4:r,5:i,6:s,7:a,8:o,9:f},{202:[1,607]},{2:t,3:613,4:r,5:i,6:s,7:a,8:o,9:f,141:at,146:y3,152:P3,154:G3,161:D3,192:[1,609],469:620,512:608,513:610,514:611,517:612,521:617,532:614,536:616},{139:[1,624],384:621,388:[1,623],447:[1,622]},{122:626,141:y,192:[2,1215],329:G,510:625},e(Ii,[2,1209],{504:627,3:628,2:t,4:r,5:i,6:s,7:a,8:o,9:f}),{2:t,3:629,4:r,5:i,6:s,7:a,8:o,9:f},{4:[1,630]},{4:[1,631]},e(mi,[2,530]),e(B,[2,727],{78:[1,632]}),e(l3,[2,728]),{2:t,3:633,4:r,5:i,6:s,7:a,8:o,9:f},{2:t,3:268,4:r,5:i,6:s,7:a,8:o,9:f,152:w,161:_,190:x,208:266,210:267,231:634,335:D},{2:t,3:635,4:r,5:i,6:s,7:a,8:o,9:f},e(x3,kr,{435:636,165:Ir}),{442:[1,638]},{2:t,3:639,4:r,5:i,6:s,7:a,8:o,9:f},e(x3,kr,{435:640,165:Ir}),e(x3,kr,{435:641,165:Ir}),{2:t,3:642,4:r,5:i,6:s,7:a,8:o,9:f},e(wr,[2,1203]),e(wr,[2,1204]),e(B,n,{21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,16:643,123:660,360:672,2:t,4:r,5:i,6:s,7:a,8:o,9:f,57:E,76:p,82:h,96:g,109:le,121:Z1,124:I1,125:w1,132:V1,133:wi,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,155:v,163:ce,165:T,179:Ee,180:me,188:G1,189:P1,198:O,294:b,295:C1,322:C,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge,368:a1,372:r1,373:j,433:i1,437:k1,438:W1,441:z1,443:R,445:M1,446:ee,454:_1,455:X1,466:Se,472:Ie,474:Xe,475:Ve,477:we,478:Ge,479:Me,480:Ze,481:Re,482:Oe,483:Pe,487:He,488:o3,491:v3,492:k3,545:I3,546:w3,555:_3}),e(he,[2,299]),e(he,[2,300]),e(he,[2,301]),e(he,[2,302]),e(he,[2,303]),e(he,[2,304]),e(he,[2,305]),e(he,[2,306]),e(he,[2,307]),e(he,[2,308]),e(he,[2,309]),e(he,[2,310]),e(he,[2,311]),e(he,[2,312]),e(he,[2,313]),e(he,[2,314]),e(he,[2,315]),e(he,[2,316]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,30:689,31:688,40:684,44:683,60:175,82:F3,85:75,95:76,96:g,104:686,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,193:102,198:O,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,291:685,292:p1,293:b1,294:b,295:_i,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:xi,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,373:j,456:204,457:I,461:k},e(he,[2,320]),e(he,[2,321]),e(_r,[2,322],{82:dn}),{82:[1,691]},{82:[1,692]},e([2,4,5,6,7,8,9,14,57,76,78,81,83,96,103,105,108,109,116,121,124,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],pn,{82:st,125:[1,693]}),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:694,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:695,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:696,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:697,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:698,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(Di,Li,{125:[1,699]}),e(Di,Vi,{125:[1,700]}),e(he,[2,289]),e([2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,229,242,243,244,245,246,247,248,249,250,251,252,259,266,267,268,269,271,273,275,281,292,293,294,295,298,299,301,304,313,314,315,316,317,318,319,320,322,323,324,325,326,327,328,329,330,331,332,333,335,336,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,378,391,403,404,407,408,433,437,438,441,443,445,446,452,454,455,457,461,463,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798,799,800],[2,377]),e(t2,[2,378]),e(t2,[2,379]),e(t2,Mi),e(t2,[2,381]),e([2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,250,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,330,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,378,391,403,404,407,408,433,437,438,441,443,445,446,454,455,457,461,463,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],[2,382]),{2:t,3:702,4:r,5:i,6:s,7:a,8:o,9:f,140:[1,703],334:701},{2:t,3:704,4:r,5:i,6:s,7:a,8:o,9:f},e(mt,[2,388]),e(mt,[2,389]),{2:t,3:705,4:r,5:i,6:s,7:a,8:o,9:f,82:bn,122:707,140:L,141:y,152:w,161:_,190:x,205:708,210:710,284:709,327:e1,328:t1,329:G,335:D,456:711,461:k},{82:[1,712]},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:713,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,337:714,340:715,341:xr,345:N1,350:O1,456:204,457:I,461:k},{82:[1,717]},{82:[1,718]},e(u3,[2,659]),{2:t,3:734,4:r,5:i,6:s,7:a,8:o,9:f,82:Zt,120:729,122:727,140:L,141:y,152:w,153:723,154:Ye,161:_,165:V,190:x,205:725,209:732,210:731,229:Qe,281:ze,284:728,285:730,293:$e,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,333:[1,721],335:D,350:$t,456:204,457:I,458:719,459:722,460:724,461:k,464:720},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:285,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,160:737,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:738,4:r,5:i,6:s,7:a,8:o,9:f,165:V,209:739,293:$e,322:J,323:M,324:U,325:F,326:P},{82:[2,353]},{82:[2,354]},{82:[2,355]},{82:[2,356]},{82:[2,357]},{82:[2,358]},{82:[2,359]},{82:[2,360]},{82:[2,361]},{82:[2,362]},{2:t,3:745,4:r,5:i,6:s,7:a,8:o,9:f,140:Ui,141:Fi,462:740,463:[1,741],465:742},{2:t,3:268,4:r,5:i,6:s,7:a,8:o,9:f,152:w,161:_,190:x,208:266,210:267,231:746,335:D},e(Et,Kt,{374:747,207:qt}),{322:[1,748]},e(Et,[2,500]),{2:t,3:268,4:r,5:i,6:s,7:a,8:o,9:f,152:w,161:_,190:x,208:266,210:267,231:749,335:D},{251:[1,751],494:750},{251:[2,736]},{2:t,3:235,4:r,5:i,6:s,7:a,8:o,9:f,82:Ar,141:z3,152:w,153:228,154:n1,161:_,165:V,190:x,208:229,209:231,210:230,211:232,218:752,227:233,229:Z3,293:$e,322:J,323:M,324:U,325:F,326:P,335:D,456:204,457:I,461:k},{44:753,82:h,85:75,95:76,96:g,193:102,198:O},e(Dr,[2,1145],{220:754,81:[1,755]}),e(xe,[2,1149],{222:756,230:758,3:759,2:t,4:r,5:i,6:s,7:a,8:o,9:f,81:S3,163:[1,757]}),e(xe,[2,1151],{3:759,224:761,230:762,2:t,4:r,5:i,6:s,7:a,8:o,9:f,81:S3}),e(xe,[2,1153],{3:759,225:763,230:764,2:t,4:r,5:i,6:s,7:a,8:o,9:f,81:S3}),e(xe,[2,1155],{3:759,226:765,230:766,2:t,4:r,5:i,6:s,7:a,8:o,9:f,81:S3}),e(xe,[2,1157],{3:759,228:767,230:768,2:t,4:r,5:i,6:s,7:a,8:o,9:f,81:S3}),e(xe,[2,198]),e([2,4,5,6,7,8,9,14,76,78,81,83,103,108,127,137,163,171,177,178,192,215,217,242,243,244,245,246,247,248,249,250,251,252,271,273,339,343,503,639,798],Pi,{82:st,125:Gi}),e([2,4,5,6,7,8,9,14,76,78,81,83,103,108,127,137,171,177,178,215,217,242,243,244,245,246,247,248,249,250,251,252,271,273,339,343,503,639,798],[2,201]),e(B,[2,815]),{2:t,3:268,4:r,5:i,6:s,7:a,8:o,9:f,208:770},e(ot,gn,{87:771,207:En}),e(Qt,[2,1092]),e(yi,[2,1109],{117:773,199:[1,774]}),e(mn,Bi,{93:775,127:Ji}),{82:h,85:780,95:779,99:778,193:102,198:O,261:777},e($3,[2,250],{173:[1,781],262:[1,782]}),e($3,[2,252],{262:[1,783]}),e($3,[2,253],{262:[1,784]}),e([14,83,192,339,343,503,639,798],gn,{456:204,87:785,126:786,3:787,123:790,153:812,167:822,169:823,2:t,4:r,5:i,6:s,7:a,8:o,9:f,76:u2,81:f2,82:c2,121:h2,124:I1,125:w1,127:d2,131:p2,132:b2,133:g2,137:E2,138:m2,139:v2,140:S2,141:T2,142:A2,143:N2,144:O2,145:C2,146:R2,147:k2,148:I2,149:w2,150:_2,151:x2,152:D2,154:L2,155:V2,157:M2,158:U2,159:F2,161:P2,163:G2,165:y2,171:B2,173:J2,175:j2,177:H2,178:Y2,179:W2,180:X2,181:K2,182:q2,184:Q2,194:z2,196:Z2,207:En,266:H,267:Y,304:$2,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,457:I,461:k}),{388:[1,837]},{192:[1,838]},e(B,[2,629],{121:[1,839]}),{442:[1,840]},{192:[1,841]},e(B,[2,633],{121:[1,842],192:[1,843]}),{2:t,3:268,4:r,5:i,6:s,7:a,8:o,9:f,208:844},{44:845,78:[1,846],82:h,85:75,95:76,96:g,193:102,198:O},e(vt,[2,75]),{2:t,3:258,4:r,5:i,6:s,7:a,8:o,9:f,79:847},{81:[1,848],82:[1,849]},e(B,[2,706]),{15:114,339:[1,850],639:gi,798:Ei},e(B,[2,704]),e(B,[2,705]),{2:t,3:851,4:r,5:i,6:s,7:a,8:o,9:f},e(B,[2,622]),{155:[1,852]},e(ji,[2,204]),e(ji,[2,205]),e([2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,105,133,137,152,154,155,157,158,161,163,165,190,192,196,198,250,294,295,322,330,335,339,343,368,372,373,378,379,391,403,404,407,408,433,437,438,439,440,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,545,546,552,553,554,555,639,798],Pi,{125:Gi}),e(B,[2,650]),e(B,[2,651]),e(B,[2,652]),e(B,Mi,{78:[1,853]}),{82:bn,122:707,140:L,141:y,152:w,161:_,190:x,205:708,210:710,284:709,327:e1,328:t1,329:G,335:D,456:711,461:k},e(De,[2,332]),e(De,[2,333]),e(De,[2,334]),e(De,[2,335]),e(De,[2,336]),e(De,[2,337]),e(De,[2,338]),e(De,[2,339],{82:dn}),e(B,n,{21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,123:660,360:672,16:854,2:t,4:r,5:i,6:s,7:a,8:o,9:f,57:E,76:p,82:h,96:g,109:le,121:Z1,124:I1,125:w1,132:V1,133:wi,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,155:v,163:ce,165:T,179:Ee,180:me,188:G1,189:P1,198:O,294:b,295:C1,322:C,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge,368:a1,372:r1,373:j,433:i1,437:k1,438:W1,441:z1,443:R,445:M1,446:ee,454:_1,455:X1,466:Se,472:Ie,474:Xe,475:Ve,477:we,478:Ge,479:Me,480:Ze,481:Re,482:Oe,483:Pe,487:He,488:o3,491:v3,492:k3,545:I3,546:w3,555:_3}),e(B,[2,716],{78:e3}),e(B,[2,717]),e(Hi,[2,375],{123:660,360:672,109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge}),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,30:689,31:688,40:684,44:857,60:175,82:F3,85:75,95:76,96:g,104:686,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,193:102,198:O,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,291:685,292:p1,293:b1,294:b,295:_i,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:xi,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,373:j,456:204,457:I,461:k},e(B,[2,718],{78:[1,858]}),e(B,[2,719],{78:[1,859]}),e(l3,[2,724]),e(l3,[2,726]),e(l3,[2,720]),e(l3,[2,721]),{123:865,124:I1,125:w1,133:[1,860],250:Yi,467:861,468:862,471:Wi},{2:t,3:866,4:r,5:i,6:s,7:a,8:o,9:f},e(x3,[2,695]),e(x3,[2,696]),e(B,[2,649],{123:660,360:672,109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge}),{2:t,3:104,4:r,5:i,6:s,7:a,8:o,9:f,543:300,544:867},e(B,[2,796],{78:vn}),e(ye,[2,798]),e(B,[2,801]),e(B,[2,722],{123:660,360:672,109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge}),e(lt,Nr,{195:869,204:Or}),e(lt,Nr,{195:870,204:Or}),e(lt,Nr,{195:871,204:Or}),e(St,[2,1139],{282:156,209:157,283:158,120:159,280:160,205:161,284:162,122:163,285:164,210:165,211:166,286:167,287:168,288:169,153:171,289:172,290:173,60:175,167:178,3:180,456:204,197:872,183:873,279:874,104:875,2:t,4:r,5:i,6:s,7:a,8:o,9:f,82:R1,140:L,141:y,146:o1,152:w,154:n1,158:l1,161:_,163:u1,165:V,188:f1,189:c1,190:x,229:h1,266:H,267:Y,281:d1,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,457:I,461:k}),{82:[1,877],140:L,205:876},{83:[1,878]},{2:t,3:104,4:r,5:i,6:s,7:a,8:o,9:f,543:300,544:879},e(ut,[2,163]),e(ut,[2,164]),e(ut,[2,165]),e(ut,[2,166]),e(ut,[2,167]),e(ut,[2,168]),e(ut,[2,169]),e(N,[2,7]),e(N,[2,816]),e(N,[2,817]),e(N,[2,818]),e(N,[2,819]),e(N,[2,820]),e(N,[2,821]),e(N,[2,822]),e(N,[2,823]),e(N,[2,824]),e(N,[2,825]),e(N,[2,826]),e(N,[2,827]),e(N,[2,828]),e(N,[2,829]),e(N,[2,830]),e(N,[2,831]),e(N,[2,832]),e(N,[2,833]),e(N,[2,834]),e(N,[2,835]),e(N,[2,836]),e(N,[2,837]),e(N,[2,838]),e(N,[2,839]),e(N,[2,840]),e(N,[2,841]),e(N,[2,842]),e(N,[2,843]),e(N,[2,844]),e(N,[2,845]),e(N,[2,846]),e(N,[2,847]),e(N,[2,848]),e(N,[2,849]),e(N,[2,850]),e(N,[2,851]),e(N,[2,852]),e(N,[2,853]),e(N,[2,854]),e(N,[2,855]),e(N,[2,856]),e(N,[2,857]),e(N,[2,858]),e(N,[2,859]),e(N,[2,860]),e(N,[2,861]),e(N,[2,862]),e(N,[2,863]),e(N,[2,864]),e(N,[2,865]),e(N,[2,866]),e(N,[2,867]),e(N,[2,868]),e(N,[2,869]),e(N,[2,870]),e(N,[2,871]),e(N,[2,872]),e(N,[2,873]),e(N,[2,874]),e(N,[2,875]),e(N,[2,876]),e(N,[2,877]),e(N,[2,878]),e(N,[2,879]),e(N,[2,880]),e(N,[2,881]),e(N,[2,882]),e(N,[2,883]),e(N,[2,884]),e(N,[2,885]),e(N,[2,886]),e(N,[2,887]),e(N,[2,888]),e(N,[2,889]),e(N,[2,890]),e(N,[2,891]),e(N,[2,892]),e(N,[2,893]),e(N,[2,894]),e(N,[2,895]),e(N,[2,896]),e(N,[2,897]),e(N,[2,898]),e(N,[2,899]),e(N,[2,900]),e(N,[2,901]),e(N,[2,902]),e(N,[2,903]),e(N,[2,904]),e(N,[2,905]),e(N,[2,906]),e(N,[2,907]),e(N,[2,908]),e(N,[2,909]),e(N,[2,910]),e(N,[2,911]),e(N,[2,912]),e(N,[2,913]),e(N,[2,914]),e(N,[2,915]),e(N,[2,916]),e(N,[2,917]),e(N,[2,918]),e(N,[2,919]),e(N,[2,920]),e(N,[2,921]),e(N,[2,922]),e(N,[2,923]),e(N,[2,924]),e(N,[2,925]),e(N,[2,926]),e(N,[2,927]),e(N,[2,928]),e(N,[2,929]),e(N,[2,930]),e(N,[2,931]),e(N,[2,932]),e(N,[2,933]),e(N,[2,934]),e(N,[2,935]),e(N,[2,936]),e(N,[2,937]),e(N,[2,938]),e(N,[2,939]),e(N,[2,940]),e(N,[2,941]),e(N,[2,942]),e(N,[2,943]),e(N,[2,944]),e(N,[2,945]),e(N,[2,946]),e(N,[2,947]),e(N,[2,948]),e(N,[2,949]),e(N,[2,950]),e(N,[2,951]),e(N,[2,952]),e(N,[2,953]),e(N,[2,954]),e(N,[2,955]),e(N,[2,956]),e(N,[2,957]),e(N,[2,958]),e(N,[2,959]),e(N,[2,960]),e(N,[2,961]),e(N,[2,962]),e(N,[2,963]),e(N,[2,964]),e(N,[2,965]),e(N,[2,966]),e(N,[2,967]),e(N,[2,968]),e(N,[2,969]),e(N,[2,970]),e(N,[2,971]),e(N,[2,972]),e(N,[2,973]),e(N,[2,974]),e(N,[2,975]),e(N,[2,976]),e(N,[2,977]),e(N,[2,978]),e(N,[2,979]),e(N,[2,980]),e(N,[2,981]),e(N,[2,982]),e(N,[2,983]),e(N,[2,984]),e(N,[2,985]),e(N,[2,986]),e(N,[2,987]),e(N,[2,988]),e(N,[2,989]),e(N,[2,990]),e(N,[2,991]),e(N,[2,992]),e(N,[2,993]),e(N,[2,994]),e(N,[2,995]),e(N,[2,996]),e(N,[2,997]),e(N,[2,998]),e(N,[2,999]),e(N,[2,1e3]),e(N,[2,1001]),e(N,[2,1002]),e(N,[2,1003]),e(N,[2,1004]),e(N,[2,1005]),e(N,[2,1006]),e(N,[2,1007]),e(N,[2,1008]),e(N,[2,1009]),e(N,[2,1010]),e(N,[2,1011]),e(N,[2,1012]),e(N,[2,1013]),e(N,[2,1014]),e(N,[2,1015]),e(N,[2,1016]),e(N,[2,1017]),e(N,[2,1018]),e(N,[2,1019]),e(N,[2,1020]),e(N,[2,1021]),e(N,[2,1022]),e(N,[2,1023]),e(N,[2,1024]),e(N,[2,1025]),e(N,[2,1026]),e(N,[2,1027]),e(N,[2,1028]),e(N,[2,1029]),e(N,[2,1030]),e(N,[2,1031]),e(N,[2,1032]),e(N,[2,1033]),e(N,[2,1034]),e(N,[2,1035]),e(N,[2,1036]),e(N,[2,1037]),e(N,[2,1038]),e(N,[2,1039]),e(N,[2,1040]),e(N,[2,1041]),e(N,[2,1042]),e(N,[2,1043]),e(N,[2,1044]),e(N,[2,1045]),e(N,[2,1046]),e(N,[2,1047]),e(N,[2,1048]),e(N,[2,1049]),e(N,[2,1050]),e(N,[2,1051]),e(N,[2,1052]),e(N,[2,1053]),e(N,[2,1054]),e(N,[2,1055]),e(N,[2,1056]),e(N,[2,1057]),e(N,[2,1058]),e(N,[2,1059]),e(N,[2,1060]),e(N,[2,1061]),e(N,[2,1062]),e(N,[2,1063]),e(N,[2,1064]),e(N,[2,1065]),e(N,[2,1066]),e(N,[2,1067]),e(N,[2,1068]),e(N,[2,1069]),e(N,[2,1070]),e(N,[2,1071]),e(N,[2,1072]),e(N,[2,1073]),e(N,[2,1074]),e(N,[2,1075]),e(N,[2,1076]),e(N,[2,1077]),e(N,[2,1078]),e(N,[2,1079]),e(N,[2,1080]),e(N,[2,1081]),e(N,[2,1082]),e(N,[2,1083]),e(N,[2,1084]),e(N,[2,1085]),e(N,[2,1086]),e(N,[2,1087]),e(N,[2,1088]),e(U3,[2,11]),e(U3,n,{21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,16:880,2:t,4:r,5:i,6:s,7:a,8:o,9:f,57:E,76:p,82:h,96:g,133:A,155:v,165:T,198:O,294:b,295:C1,322:C,368:a1,372:r1,373:j,433:i1,437:k1,438:W1,441:z1,443:R,445:M1,446:ee,454:_1,455:X1,466:Se,472:Ie,474:Xe,475:Ve,477:we,478:Ge,479:Me,480:Ze,481:Re,482:Oe,483:Pe,487:He,488:o3,491:v3,492:k3,545:I3,546:w3,555:_3}),{433:[1,884],438:[1,881],439:[1,882],440:[1,883]},{2:t,3:885,4:r,5:i,6:s,7:a,8:o,9:f},e(lt,[2,1185],{321:886,801:888,83:[1,887],173:[1,890],194:[1,889]}),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:285,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,160:891,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:285,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,160:892,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{83:[1,893]},{2:t,3:894,4:r,5:i,6:s,7:a,8:o,9:f,141:[1,895]},{2:t,3:896,4:r,5:i,6:s,7:a,8:o,9:f,141:[1,897]},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:898,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:899,4:r,5:i,6:s,7:a,8:o,9:f,109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},{2:t,3:900,4:r,5:i,6:s,7:a,8:o,9:f},{163:[1,901]},e(Lr,Cr,{385:902,165:Rr}),{250:[1,903]},{2:t,3:904,4:r,5:i,6:s,7:a,8:o,9:f},e(B,[2,771],{78:Xi}),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:906,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(ye,[2,774]),e(Ki,[2,1217],{456:204,515:907,153:908,148:Sn,150:Sn,154:Ye,457:I,461:k}),{148:[1,909],150:[1,910]},e(Vr,qi,{529:912,532:913,82:[1,911],146:y3}),e(Mr,[2,1241],{533:914,141:[1,915]}),e(O3,[2,1245],{535:916,536:917,161:D3}),e(O3,[2,789]),e(Qi,[2,781]),{2:t,3:918,4:r,5:i,6:s,7:a,8:o,9:f,140:[1,919]},{2:t,3:920,4:r,5:i,6:s,7:a,8:o,9:f},{2:t,3:921,4:r,5:i,6:s,7:a,8:o,9:f},e(x3,Cr,{385:922,165:Rr}),e(x3,Cr,{385:923,165:Rr}),e(wr,[2,519]),e(wr,[2,520]),{192:[1,924]},{192:[2,1216]},e(Tn,[2,1211],{505:925,508:926,146:[1,927]}),e(Ii,[2,1210]),e(Tt,zi,{548:928,105:Zi,250:[1,929],552:$i,553:e4,554:t4}),{81:[1,934]},{81:[1,935]},{154:Ti,490:936},{4:At,11:940,81:[1,938],300:937,424:939,426:Nt},e(B,Ke,{369:944,137:[1,943],503:qe}),e(B,[2,614]),{2:t,3:946,4:r,5:i,6:s,7:a,8:o,9:f},{331:[1,947]},e(Lr,kr,{435:948,165:Ir}),e(B,[2,628]),{2:t,3:268,4:r,5:i,6:s,7:a,8:o,9:f,208:950,436:949},{2:t,3:268,4:r,5:i,6:s,7:a,8:o,9:f,208:950,436:951},e(B,[2,814]),e(U3,[2,708],{476:952,343:[1,953]}),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:954,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:955,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:956,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:957,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:958,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:959,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:960,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:961,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:962,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:963,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:964,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:965,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:966,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:967,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:968,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:969,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:970,4:r,5:i,6:s,7:a,8:o,9:f,82:[1,972],140:L,165:V,205:971,209:973,293:$e,322:J,323:M,324:U,325:F,326:P},{2:t,3:974,4:r,5:i,6:s,7:a,8:o,9:f,82:[1,976],140:L,165:V,205:975,209:977,293:$e,322:J,323:M,324:U,325:F,326:P},e(ft,[2,461],{282:156,209:157,283:158,120:159,280:160,205:161,284:162,122:163,285:164,210:165,211:166,286:167,287:168,288:169,153:171,289:172,290:173,60:175,167:178,3:180,456:204,104:978,2:t,4:r,5:i,6:s,7:a,8:o,9:f,82:R1,140:L,141:y,146:o1,152:w,154:n1,158:l1,161:_,163:u1,165:V,188:f1,189:c1,190:x,229:h1,266:H,267:Y,281:d1,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,457:I,461:k}),e(ft,[2,462],{282:156,209:157,283:158,120:159,280:160,205:161,284:162,122:163,285:164,210:165,211:166,286:167,287:168,288:169,153:171,289:172,290:173,60:175,167:178,3:180,456:204,104:979,2:t,4:r,5:i,6:s,7:a,8:o,9:f,82:R1,140:L,141:y,146:o1,152:w,154:n1,158:l1,161:_,163:u1,165:V,188:f1,189:c1,190:x,229:h1,266:H,267:Y,281:d1,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,457:I,461:k}),e(ft,[2,463],{282:156,209:157,283:158,120:159,280:160,205:161,284:162,122:163,285:164,210:165,211:166,286:167,287:168,288:169,153:171,289:172,290:173,60:175,167:178,3:180,456:204,104:980,2:t,4:r,5:i,6:s,7:a,8:o,9:f,82:R1,140:L,141:y,146:o1,152:w,154:n1,158:l1,161:_,163:u1,165:V,188:f1,189:c1,190:x,229:h1,266:H,267:Y,281:d1,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,457:I,461:k}),e(ft,[2,464],{282:156,209:157,283:158,120:159,280:160,205:161,284:162,122:163,285:164,210:165,211:166,286:167,287:168,288:169,153:171,289:172,290:173,60:175,167:178,3:180,456:204,104:981,2:t,4:r,5:i,6:s,7:a,8:o,9:f,82:R1,140:L,141:y,146:o1,152:w,154:n1,158:l1,161:_,163:u1,165:V,188:f1,189:c1,190:x,229:h1,266:H,267:Y,281:d1,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,457:I,461:k}),e(ft,r4,{282:156,209:157,283:158,120:159,280:160,205:161,284:162,122:163,285:164,210:165,211:166,286:167,287:168,288:169,153:171,289:172,290:173,60:175,167:178,3:180,456:204,104:982,2:t,4:r,5:i,6:s,7:a,8:o,9:f,82:R1,140:L,141:y,146:o1,152:w,154:n1,158:l1,161:_,163:u1,165:V,188:f1,189:c1,190:x,229:h1,266:H,267:Y,281:d1,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,457:I,461:k}),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:983,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:984,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(ft,[2,466],{282:156,209:157,283:158,120:159,280:160,205:161,284:162,122:163,285:164,210:165,211:166,286:167,287:168,288:169,153:171,289:172,290:173,60:175,167:178,3:180,456:204,104:985,2:t,4:r,5:i,6:s,7:a,8:o,9:f,82:R1,140:L,141:y,146:o1,152:w,154:n1,158:l1,161:_,163:u1,165:V,188:f1,189:c1,190:x,229:h1,266:H,267:Y,281:d1,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,457:I,461:k}),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:986,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:987,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{173:[1,989],175:[1,991],361:988,367:[1,990]},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:992,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:993,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:734,4:r,5:i,6:s,7:a,8:o,9:f,82:[1,994],120:997,154:n4,165:V,209:998,211:996,229:Qe,281:ze,293:$e,322:J,323:M,324:U,325:F,326:P,362:995},{109:[1,1e3],330:[1,1001]},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1002,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1003,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1004,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{4:At,11:940,300:1005,424:939,426:Nt},e(i4,[2,98]),e(i4,[2,99]),{83:[1,1006]},{83:[1,1007]},{83:[1,1008]},{83:[1,1009],109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},e(Et,Kt,{374:223,82:ki,207:qt}),{83:[2,1177]},{83:[2,1178]},{143:vi,144:Si},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:285,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,160:1010,161:_,163:u1,165:V,167:178,173:[1,1012],188:f1,189:c1,190:x,194:[1,1011],205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1013,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,194:[1,1014],205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:1015,4:r,5:i,6:s,7:a,8:o,9:f,154:s4,158:a4,189:[1,1018]},e([2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,127,131,137,138,139,140,141,143,144,146,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,347,363,364,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],[2,437],{123:660,360:672,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,365:$1}),e(Ur,[2,438],{123:660,360:672,124:I1,125:w1,132:V1,142:U1,145:D1,147:F1,189:P1,345:L1,349:x1}),e(Ur,[2,439],{123:660,360:672,124:I1,125:w1,132:V1,142:U1,145:D1,147:F1,189:P1,345:L1,349:x1}),e(An,[2,440],{123:660,360:672,349:x1}),e(An,[2,441],{123:660,360:672,349:x1}),{2:t,3:1019,4:r,5:i,6:s,7:a,8:o,9:f,189:[1,1020]},{2:t,3:1021,4:r,5:i,6:s,7:a,8:o,9:f,189:[1,1022]},e(mt,[2,386]),e(mt,[2,1187]),e(mt,[2,1188]),e(mt,[2,387]),e([2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,250,251,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],[2,383]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1023,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(u3,[2,655]),e(u3,[2,656]),e(u3,[2,657]),e(u3,[2,658]),e(u3,[2,660]),{44:1024,82:h,85:75,95:76,96:g,193:102,198:O},{109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,337:1025,340:715,341:xr,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},{338:1026,339:o4,340:1027,341:xr,343:l4},e(Nn,[2,393]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1029,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1030,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{4:At,11:940,300:1031,424:939,426:Nt},e(u3,[2,661]),{78:[1,1033],333:[1,1032]},e(u3,[2,678]),e(u4,[2,688]),e(C3,[2,662]),e(C3,[2,663]),e(C3,[2,664]),{140:L,205:1034},e(C3,[2,666]),e(C3,[2,667]),e(C3,[2,668]),e(C3,[2,669]),e(C3,[2,670]),e(C3,[2,671]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1035,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e([2,4,5,6,7,8,9,14,57,76,78,81,83,96,103,105,108,109,116,121,124,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,463,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],pn,{82:st,125:f4}),e(c4,Li,{125:[1,1037]}),e(c4,Vi,{125:[1,1038]}),{78:e3,333:[1,1039]},e(_r,[2,326],{82:st}),e(he,[2,327]),{78:[1,1041],463:[1,1040]},e(u3,[2,675]),e(et,[2,680]),{161:[1,1042],466:[1,1043]},{161:[1,1044],466:[1,1045]},{161:[1,1046],466:[1,1047]},{44:1052,82:[1,1051],85:75,95:76,96:g,152:w,153:1056,154:Ye,155:[1,1053],158:ct,161:_,190:x,193:102,198:O,210:1057,335:D,375:1048,376:1049,378:[1,1050],379:ht,456:204,457:I,461:k},{2:t,3:268,4:r,5:i,6:s,7:a,8:o,9:f,152:w,161:_,190:x,208:266,210:267,231:1058,335:D},e(Et,Kt,{374:1059,207:qt}),{82:B3,152:w,153:1056,154:Ye,158:ct,161:_,190:x,210:1057,335:D,375:1060,376:1061,379:ht,456:204,457:I,461:k},{250:[1,1064],495:1063},{2:t,3:235,4:r,5:i,6:s,7:a,8:o,9:f,82:[1,1066],141:z3,152:w,153:228,154:n1,161:_,165:V,190:x,208:229,209:231,210:230,211:232,218:1065,227:233,229:Z3,293:$e,322:J,323:M,324:U,325:F,326:P,335:D,456:204,457:I,461:k},{251:[2,737]},{83:[1,1067]},e(xe,[2,1147],{221:1068,3:1069,2:t,4:r,5:i,6:s,7:a,8:o,9:f}),e(Dr,[2,1146]),e(xe,[2,192]),{223:[1,1070]},e(xe,[2,1150]),e(xe,[2,199]),{2:t,3:1071,4:r,5:i,6:s,7:a,8:o,9:f},e(xe,[2,194]),e(xe,[2,1152]),e(xe,[2,195]),e(xe,[2,1154]),e(xe,[2,196]),e(xe,[2,1156]),e(xe,[2,197]),e(xe,[2,1158]),{2:t,3:1072,4:r,5:i,6:s,7:a,8:o,9:f},{157:[1,1073]},e(Ot,h4,{88:1074,192:d4}),{2:t,3:235,4:r,5:i,6:s,7:a,8:o,9:f,141:[1,1080],152:w,154:[1,1081],161:_,165:V,190:x,208:1076,209:1077,210:1078,211:1079,293:$e,322:J,323:M,324:U,325:F,326:P,335:D},{2:t,3:1086,4:r,5:i,6:s,7:a,8:o,9:f,118:1082,119:1083,120:1084,121:p4,229:Qe,281:ze},e(yi,[2,1110]),e(f3,b4,{94:1087,271:g4,273:E4}),{128:[1,1090]},e(it,[2,249]),e(it,[2,258]),e(it,[2,259]),e(Qt,[2,1099],{100:1091,115:1092,116:Ai}),e($3,[2,251],{262:[1,1093]}),e($3,[2,254]),e($3,[2,256]),e($3,[2,257]),e(f3,[2,1097],{98:1094,191:1095,192:[1,1096]}),e(Ni,[2,1096],{162:1097,188:t3,189:r3,190:n3}),e([2,4,5,6,7,8,9,14,76,78,81,83,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,207,266,267,304,313,314,315,316,317,318,319,320,339,343,457,461,503,639,798],[2,100],{82:[1,1101]}),{128:[1,1102]},e(Ae,[2,103]),{2:t,3:1103,4:r,5:i,6:s,7:a,8:o,9:f},e(Ae,[2,105]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1104,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1105,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:787,4:r,5:i,6:s,7:a,8:o,9:f,76:u2,81:f2,82:c2,121:h2,123:790,124:I1,125:w1,126:1107,127:d2,131:p2,132:b2,133:g2,134:1106,137:E2,138:m2,139:v2,140:S2,141:T2,142:A2,143:N2,144:O2,145:C2,146:R2,147:k2,148:I2,149:w2,150:_2,151:x2,152:D2,153:812,154:L2,155:V2,157:M2,158:U2,159:F2,161:P2,163:G2,165:y2,167:822,169:823,171:B2,173:J2,175:j2,177:H2,178:Y2,179:W2,180:X2,181:K2,182:q2,184:Q2,194:z2,196:Z2,266:H,267:Y,304:$2,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,456:204,457:I,461:k},{82:[1,1108]},{82:[1,1109]},{82:[1,1110]},{82:[1,1111]},e(Ae,[2,114]),e(Ae,[2,115]),e(Ae,[2,116]),e(Ae,[2,117]),e(Ae,[2,118]),e(Ae,[2,119]),{2:t,3:1112,4:r,5:i,6:s,7:a,8:o,9:f},{2:t,3:1113,4:r,5:i,6:s,7:a,8:o,9:f,142:[1,1114]},e(Ae,[2,123]),e(Ae,[2,124]),e(Ae,[2,125]),e(Ae,[2,126]),e(Ae,[2,127]),e(Ae,[2,128]),{2:t,3:1115,4:r,5:i,6:s,7:a,8:o,9:f,82:bn,122:707,140:L,141:y,152:w,161:_,190:x,205:708,210:710,284:709,327:e1,328:t1,329:G,335:D,456:711,461:k},{154:[1,1116]},{82:[1,1117]},{154:[1,1118]},e(Ae,[2,133]),{82:[1,1119]},{2:t,3:1120,4:r,5:i,6:s,7:a,8:o,9:f},{82:[1,1121]},{82:[1,1122]},{82:[1,1123]},{82:[1,1124]},{82:[1,1125],173:[1,1126]},{82:[1,1127]},{82:[1,1128]},{82:[1,1129]},{82:[1,1130]},{82:[1,1131]},{82:[1,1132]},{82:[1,1133]},{82:[1,1134]},{82:[1,1135]},{82:[2,363]},{82:[2,1125]},{82:[2,1126]},{2:t,3:268,4:r,5:i,6:s,7:a,8:o,9:f,208:1136},{2:t,3:268,4:r,5:i,6:s,7:a,8:o,9:f,208:1137},{122:1138,141:y,329:G},e(B,[2,631],{121:[1,1139]}),{2:t,3:268,4:r,5:i,6:s,7:a,8:o,9:f,208:1140},{122:1141,141:y,329:G},{2:t,3:1142,4:r,5:i,6:s,7:a,8:o,9:f},e(B,[2,734]),e(B,[2,72]),{2:t,3:258,4:r,5:i,6:s,7:a,8:o,9:f,79:1143,80:[1,1144]},e(vt,[2,76]),{82:[1,1145]},{2:t,3:1086,4:r,5:i,6:s,7:a,8:o,9:f,84:1146,120:1147,229:Qe,281:ze},e(B,[2,715]),e(B,[2,621]),{2:t,3:1086,4:r,5:i,6:s,7:a,8:o,9:f,120:1150,152:Ct,154:Rt,156:1148,229:Qe,281:ze,370:1149,371:1151},{153:1154,154:Ye,456:204,457:I,461:k},e(B,[2,710]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1155,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(ft,r4,{282:156,209:157,283:158,120:159,280:160,205:161,284:162,122:163,285:164,210:165,211:166,286:167,287:168,288:169,153:171,289:172,290:173,60:175,167:178,3:180,456:204,104:1156,2:t,4:r,5:i,6:s,7:a,8:o,9:f,82:R1,140:L,141:y,146:o1,152:w,154:n1,158:l1,161:_,163:u1,165:V,188:f1,189:c1,190:x,229:h1,266:H,267:Y,281:d1,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,457:I,461:k}),{83:[1,1157]},{122:1158,141:y,329:G},{2:t,3:292,4:r,5:i,6:s,7:a,8:o,9:f,486:1159,487:Oi},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1161,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,250:Yi,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k,467:1160,471:Wi},e(B,[2,690]),{123:1163,124:I1,125:w1,133:[1,1162]},e(B,[2,702]),e(B,[2,703]),{2:t,3:1165,4:r,5:i,6:s,7:a,8:o,9:f,82:m4,140:v4,470:1164},{123:865,124:I1,125:w1,133:[1,1168],468:1169},e(B,[2,795],{78:vn}),{2:t,3:104,4:r,5:i,6:s,7:a,8:o,9:f,543:1170},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:875,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,183:1171,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,279:874,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:875,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,183:1172,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,279:874,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:875,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,183:1173,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,279:874,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(St,[2,161]),e(St,[2,1140],{78:kt}),e(J3,[2,277]),e(J3,[2,284],{123:660,360:672,3:1176,122:1178,2:t,4:r,5:i,6:s,7:a,8:o,9:f,81:[1,1175],109:le,121:Z1,124:I1,125:w1,132:V1,133:be,140:[1,1177],141:y,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,329:G,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge}),e(zt,[2,1141],{206:1179,799:[1,1180]}),{140:L,205:1181},e(j3,tt),{78:vn,83:[1,1182]},e(U3,[2,15]),{157:[1,1183],199:[1,1184]},{199:[1,1185]},{199:[1,1186]},{199:[1,1187]},e(B,[2,610],{81:[1,1189],82:[1,1188]}),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:285,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,160:1190,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(t2,er,{303:1191,307:tr}),e(lt,[2,1186]),e(lt,[2,1183]),e(lt,[2,1184]),{78:e3,83:[1,1193]},{78:e3,83:[1,1194]},e(t2,[2,368]),{78:[1,1195]},{78:[1,1196]},{78:[1,1197]},{78:[1,1198]},{78:[1,1199],109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},e(t2,[2,374]),e(B,[2,615]),{331:[1,1200]},{2:t,3:1201,4:r,5:i,6:s,7:a,8:o,9:f,122:1202,141:y,329:G},{2:t,3:268,4:r,5:i,6:s,7:a,8:o,9:f,208:1203},{250:[1,1204]},{2:t,3:613,4:r,5:i,6:s,7:a,8:o,9:f,141:at,146:y3,152:P3,154:G3,161:D3,469:620,513:1205,514:611,517:612,521:617,532:614,536:616},e(B,[2,772],{123:660,360:672,109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge}),e(ye,[2,1219],{516:1206,522:1207,81:On}),e(Ki,[2,1218]),{2:t,3:1211,4:r,5:i,6:s,7:a,8:o,9:f,141:at,146:y3,153:1210,154:Ye,161:D3,456:204,457:I,461:k,514:1209,532:614,536:616},{2:t,3:1211,4:r,5:i,6:s,7:a,8:o,9:f,141:at,146:y3,152:P3,154:G3,161:D3,469:620,514:1213,517:1212,521:617,532:614,536:616},{2:t,3:613,4:r,5:i,6:s,7:a,8:o,9:f,141:at,146:y3,152:P3,154:G3,161:D3,469:620,512:1214,513:610,514:611,517:612,521:617,532:614,536:616},e(Mr,[2,1237],{530:1215,141:[1,1216]}),e(Vr,[2,1236]),e(O3,[2,1243],{534:1217,536:1218,161:D3}),e(Mr,[2,1242]),e(O3,[2,788]),e(O3,[2,1246]),e(Vr,[2,791]),e(Vr,[2,792]),e(O3,[2,790]),e(Qi,[2,782]),{2:t,3:268,4:r,5:i,6:s,7:a,8:o,9:f,208:1219},{2:t,3:268,4:r,5:i,6:s,7:a,8:o,9:f,208:1220},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1221,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(S4,[2,1213],{506:1222,122:1223,141:y,329:G}),e(Tn,[2,1212]),{2:t,3:1224,4:r,5:i,6:s,7:a,8:o,9:f},{368:T4,372:A4,373:N4,549:1225},{2:t,3:268,4:r,5:i,6:s,7:a,8:o,9:f,208:1229},e(Tt,[2,807]),e(Tt,[2,808]),e(Tt,[2,809]),{138:[1,1230]},{294:[1,1231]},{294:[1,1232]},e(l3,[2,729]),e(l3,[2,730],{133:[1,1233]}),{4:At,11:940,300:1234,424:939,426:Nt},e([2,4,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,250,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,330,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,378,391,403,404,407,408,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],[2,577],{5:[1,1235]}),e([2,5,6,7,8,9,14,57,76,78,81,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,250,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,330,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,378,391,403,404,407,408,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],[2,574],{4:[1,1237],82:[1,1236]}),{82:[1,1238]},e(It,[2,8]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1239,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(B,[2,477]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:875,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,183:1240,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,279:874,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(B,[2,623]),e(Lr,[2,603]),{2:t,3:1241,4:r,5:i,6:s,7:a,8:o,9:f,122:1242,141:y,329:G},e(B,[2,599],{78:O4}),e(l3,[2,601]),e(B,[2,648],{78:O4}),e(B,[2,707]),e(B,n,{21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,16:1244,2:t,4:r,5:i,6:s,7:a,8:o,9:f,57:E,76:p,82:h,96:g,133:A,155:v,165:T,198:O,294:b,295:C1,322:C,368:a1,372:r1,373:j,433:i1,437:k1,438:W1,441:z1,443:R,445:M1,446:ee,454:_1,455:X1,466:Se,472:Ie,474:Xe,475:Ve,477:we,478:Ge,479:Me,480:Ze,481:Re,482:Oe,483:Pe,487:He,488:o3,491:v3,492:k3,545:I3,546:w3,555:_3}),e(Fr,[2,397],{123:660,360:672,124:I1,125:w1,132:V1,142:U1,145:D1,147:F1,150:J1,151:j1,188:G1,189:P1,345:L1,349:x1,350:y1,351:H1,352:Y1}),e(An,[2,398],{123:660,360:672,349:x1}),e(Fr,[2,399],{123:660,360:672,124:I1,125:w1,132:V1,142:U1,145:D1,147:F1,150:J1,151:j1,188:G1,189:P1,345:L1,349:x1,350:y1,351:H1,352:Y1}),e(C4,[2,400],{123:660,360:672,124:I1,125:w1,132:V1,142:U1,145:D1,147:F1,150:J1,151:j1,188:G1,189:P1,345:L1,347:[1,1245],349:x1,350:y1,351:H1,352:Y1}),e(C4,[2,402],{123:660,360:672,124:I1,125:w1,132:V1,142:U1,145:D1,147:F1,150:J1,151:j1,188:G1,189:P1,345:L1,347:[1,1246],349:x1,350:y1,351:H1,352:Y1}),e(he,[2,404],{123:660,360:672}),e(Ur,[2,405],{123:660,360:672,124:I1,125:w1,132:V1,142:U1,145:D1,147:F1,189:P1,345:L1,349:x1}),e(Ur,[2,406],{123:660,360:672,124:I1,125:w1,132:V1,142:U1,145:D1,147:F1,189:P1,345:L1,349:x1}),e(Cn,[2,407],{123:660,360:672,124:I1,125:w1,132:V1,145:D1,345:L1,349:x1}),e(Cn,[2,408],{123:660,360:672,124:I1,125:w1,132:V1,145:D1,345:L1,349:x1}),e(Cn,[2,409],{123:660,360:672,124:I1,125:w1,132:V1,145:D1,345:L1,349:x1}),e([2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,127,131,132,133,137,138,139,140,141,142,143,144,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,346,347,348,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],[2,410],{123:660,360:672,124:I1,125:w1,145:D1,345:L1,349:x1}),e(Pr,[2,411],{123:660,360:672,124:I1,125:w1,132:V1,142:U1,145:D1,147:F1,188:G1,189:P1,345:L1,349:x1,350:y1}),e(Pr,[2,412],{123:660,360:672,124:I1,125:w1,132:V1,142:U1,145:D1,147:F1,188:G1,189:P1,345:L1,349:x1,350:y1}),e(Pr,[2,413],{123:660,360:672,124:I1,125:w1,132:V1,142:U1,145:D1,147:F1,188:G1,189:P1,345:L1,349:x1,350:y1}),e(Pr,[2,414],{123:660,360:672,124:I1,125:w1,132:V1,142:U1,145:D1,147:F1,188:G1,189:P1,345:L1,349:x1,350:y1}),e(_r,[2,415],{82:st}),e(he,[2,416]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1247,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(he,[2,418]),e(_r,[2,419],{82:st}),e(he,[2,420]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1248,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(he,[2,422]),e(L3,[2,423],{123:660,360:672,121:Z1,124:I1,125:w1,132:V1,142:U1,145:D1,147:F1,150:J1,151:j1,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,365:$1}),e(L3,[2,424],{123:660,360:672,121:Z1,124:I1,125:w1,132:V1,142:U1,145:D1,147:F1,150:J1,151:j1,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,365:$1}),e(L3,[2,425],{123:660,360:672,121:Z1,124:I1,125:w1,132:V1,142:U1,145:D1,147:F1,150:J1,151:j1,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,365:$1}),e(L3,[2,426],{123:660,360:672,121:Z1,124:I1,125:w1,132:V1,142:U1,145:D1,147:F1,150:J1,151:j1,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,365:$1}),e([2,4,5,6,7,8,9,14,57,76,82,96,109,133,148,149,155,163,165,179,180,198,294,295,322,339,343,353,354,355,356,357,358,359,363,364,366,368,372,373,433,437,438,441,443,445,446,454,455,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,545,546,555,639,798],R4,{123:660,360:672,121:Z1,124:I1,125:w1,132:V1,142:U1,145:D1,147:F1,150:J1,151:j1,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,365:$1}),e(L3,[2,428],{123:660,360:672,121:Z1,124:I1,125:w1,132:V1,142:U1,145:D1,147:F1,150:J1,151:j1,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,365:$1}),e(L3,[2,429],{123:660,360:672,121:Z1,124:I1,125:w1,132:V1,142:U1,145:D1,147:F1,150:J1,151:j1,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,365:$1}),e(L3,[2,430],{123:660,360:672,121:Z1,124:I1,125:w1,132:V1,142:U1,145:D1,147:F1,150:J1,151:j1,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,365:$1}),e(L3,[2,431],{123:660,360:672,121:Z1,124:I1,125:w1,132:V1,142:U1,145:D1,147:F1,150:J1,151:j1,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,365:$1}),e(L3,[2,432],{123:660,360:672,121:Z1,124:I1,125:w1,132:V1,142:U1,145:D1,147:F1,150:J1,151:j1,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,365:$1}),{82:[1,1249]},{82:[2,467]},{82:[2,468]},{82:[2,469]},e(Rn,[2,435],{123:660,360:672,109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,365:$1}),e([2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,116,127,131,137,138,139,140,141,143,144,146,152,154,155,157,158,159,161,165,171,173,175,177,178,180,181,182,184,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,347,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],[2,436],{123:660,360:672,109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1}),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,44:1250,60:175,82:F3,83:[1,1252],85:75,95:76,96:g,104:285,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,160:1251,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,193:102,198:O,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(he,[2,449]),e(he,[2,451]),e(he,[2,458]),e(he,[2,459]),{2:t,3:705,4:r,5:i,6:s,7:a,8:o,9:f,82:[1,1253]},{2:t,3:734,4:r,5:i,6:s,7:a,8:o,9:f,82:[1,1254],120:997,154:n4,165:V,209:998,211:1256,229:Qe,281:ze,293:$e,322:J,323:M,324:U,325:F,326:P,362:1255},e(he,[2,456]),e(Rn,[2,453],{123:660,360:672,109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,365:$1}),e(Rn,[2,454],{123:660,360:672,109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,365:$1}),e([2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,127,131,133,137,138,139,140,141,143,144,146,148,149,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,347,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],[2,455],{123:660,360:672,121:Z1,124:I1,125:w1,132:V1,142:U1,145:D1,147:F1,150:J1,151:j1,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1}),e(he,[2,457]),e(he,k4),e(he,[2,318]),e(he,[2,319]),e(he,[2,442]),{78:e3,83:[1,1257]},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1258,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1259,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(kn,I4,{123:660,360:672,305:1260,109:le,121:Z1,124:I1,125:w1,127:w4,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge}),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1262,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(he,_4),e(wt,[2,294]),{2:t,3:1264,4:r,5:i,6:s,7:a,8:o,9:f},e(he,[2,286]),e(wt,[2,291]),e(he,[2,287]),e(wt,[2,292]),e(he,[2,288]),{83:[1,1265],109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},{83:[1,1266]},{338:1267,339:o4,340:1027,341:xr,343:l4},{339:[1,1268]},e(Nn,[2,392]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1269,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,342:[1,1270],344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},{81:[1,1271],109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},{78:[1,1272]},e(u3,[2,676]),{2:t,3:734,4:r,5:i,6:s,7:a,8:o,9:f,82:Zt,120:729,122:727,140:L,141:y,152:w,153:723,154:Ye,161:_,165:V,190:x,205:725,209:732,210:731,229:Qe,281:ze,284:728,285:730,293:$e,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,333:[1,1273],335:D,350:$t,456:204,457:I,459:1274,460:724,461:k},e(C3,[2,665]),{83:[1,1275],109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},{2:t,3:1276,4:r,5:i,6:s,7:a,8:o,9:f,154:s4,158:a4},{2:t,3:1019,4:r,5:i,6:s,7:a,8:o,9:f},{2:t,3:1021,4:r,5:i,6:s,7:a,8:o,9:f},e(he,[2,385]),e(u3,[2,673]),{2:t,3:745,4:r,5:i,6:s,7:a,8:o,9:f,140:Ui,141:Fi,463:[1,1277],465:1278},{2:t,3:734,4:r,5:i,6:s,7:a,8:o,9:f,82:Zt,120:729,122:727,140:L,141:y,152:w,153:723,154:Ye,161:_,165:V,190:x,205:725,209:732,210:731,229:Qe,281:ze,284:728,285:730,293:$e,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,335:D,350:$t,456:204,457:I,459:1279,460:724,461:k},{140:L,205:1280},{2:t,3:734,4:r,5:i,6:s,7:a,8:o,9:f,82:Zt,120:729,122:727,140:L,141:y,152:w,153:723,154:Ye,161:_,165:V,190:x,205:725,209:732,210:731,229:Qe,281:ze,284:728,285:730,293:$e,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,335:D,350:$t,456:204,457:I,459:1281,460:724,461:k},{140:L,205:1282},{2:t,3:734,4:r,5:i,6:s,7:a,8:o,9:f,82:Zt,120:729,122:727,140:L,141:y,152:w,153:723,154:Ye,161:_,165:V,190:x,205:725,209:732,210:731,229:Qe,281:ze,284:728,285:730,293:$e,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,335:D,350:$t,456:204,457:I,459:1283,460:724,461:k},{140:L,205:1284},{82:B3,152:w,153:1056,154:Ye,161:_,190:x,210:1057,335:D,376:1285,456:204,457:I,461:k},e(Ce,Ke,{369:1286,78:c3,503:qe}),{158:ct,375:1288,379:ht},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,44:308,60:175,82:F3,84:1289,85:75,95:76,96:g,104:1292,120:1291,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,193:102,198:O,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,380:1290,456:204,457:I,461:k},e(Ce,Ke,{369:1293,503:qe}),{2:t,3:1086,4:r,5:i,6:s,7:a,8:o,9:f,120:1150,152:Ct,154:Rt,156:1294,229:Qe,281:ze,370:1149,371:1151},e(x4,[2,497]),e(x4,[2,498]),e(_t,[2,502]),e(_t,[2,503]),{44:1298,82:[1,1297],85:75,95:76,96:g,152:w,153:1056,154:Ye,158:ct,161:_,190:x,193:102,198:O,210:1057,335:D,375:1295,376:1296,379:ht,456:204,457:I,461:k},{2:t,3:268,4:r,5:i,6:s,7:a,8:o,9:f,152:w,161:_,190:x,208:266,210:267,231:1299,335:D},{82:B3,152:w,153:1056,154:Ye,161:_,190:x,210:1057,335:D,376:1300,456:204,457:I,461:k},e(Ce,Ke,{369:1301,78:c3,503:qe}),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1292,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,380:1290,456:204,457:I,461:k},{341:D4,496:1302,497:1303,498:1304},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1306,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{250:[2,738]},{2:t,3:235,4:r,5:i,6:s,7:a,8:o,9:f,44:753,82:L4,85:75,95:76,96:g,141:z3,152:w,153:228,154:n1,161:_,165:V,190:x,193:102,198:O,208:229,209:231,210:230,211:232,218:1307,227:233,229:Z3,293:$e,322:J,323:M,324:U,325:F,326:P,335:D,456:204,457:I,461:k},e(xe,V4,{3:759,219:1309,230:1310,2:t,4:r,5:i,6:s,7:a,8:o,9:f,81:S3}),e(xe,[2,191]),e(xe,[2,1148]),e(xe,[2,193]),e(xe,[2,200]),e([2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,127,133,137,152,154,155,157,158,161,163,165,171,177,178,190,192,196,198,215,217,242,243,244,245,246,247,248,249,250,251,252,271,273,294,295,322,330,335,339,343,368,372,373,378,379,391,403,404,407,408,433,437,438,439,440,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,545,546,552,553,554,555,639,798],[2,202]),{2:t,3:1311,4:r,5:i,6:s,7:a,8:o,9:f},e(T3,[2,1093],{89:1312,102:1313,103:M4,108:U4}),{2:t,3:235,4:r,5:i,6:s,7:a,8:o,9:f,82:[1,1317],141:z3,152:w,153:228,154:n1,161:_,165:V,190:x,208:229,209:231,210:230,211:232,212:1316,218:1318,227:233,229:Z3,293:$e,322:J,323:M,324:U,325:F,326:P,335:D,456:204,457:I,461:k},e(ot,[2,174]),e(ot,[2,175]),e(ot,[2,176]),e(ot,[2,177]),e(ot,[2,178]),{2:t,3:705,4:r,5:i,6:s,7:a,8:o,9:f},e(Qt,[2,93],{78:[1,1319]}),e(Gr,[2,95]),e(Gr,[2,96]),{122:1320,141:y,329:G},e([14,76,78,83,103,108,127,133,137,171,177,178,192,207,215,217,242,243,244,245,246,247,248,249,252,271,273,339,343,503,639,798],pn,{125:f4}),e(f3,[2,80]),{140:L,205:1321},{140:L,205:1322},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1325,120:159,122:163,129:1323,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,263:1324,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(ot,gn,{87:1326,207:En}),e(Qt,[2,1100]),e($3,[2,255]),e(f3,[2,81]),e(f3,[2,1098]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1327,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(Ae,[2,136]),e(Ae,[2,154]),e(Ae,[2,155]),e(Ae,[2,156]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,83:[2,1117],104:285,120:159,122:163,136:1328,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,160:1329,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{82:[1,1330]},e(Ae,[2,104]),e([2,4,5,6,7,8,9,14,76,78,81,82,83,127,131,133,137,138,139,140,141,143,144,146,148,149,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,190,192,194,196,207,266,267,304,313,314,315,316,317,318,319,320,339,343,457,461,503,639,798],[2,106],{123:660,360:672,109:le,121:Z1,124:I1,125:w1,132:V1,142:U1,145:D1,147:F1,150:J1,151:j1,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge}),e([2,4,5,6,7,8,9,14,76,78,81,82,83,121,127,131,133,137,138,139,140,141,143,144,146,148,149,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,190,192,194,196,207,266,267,304,313,314,315,316,317,318,319,320,339,343,457,461,503,639,798],[2,107],{123:660,360:672,109:le,124:I1,125:w1,132:V1,142:U1,145:D1,147:F1,150:J1,151:j1,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge}),{2:t,3:787,4:r,5:i,6:s,7:a,8:o,9:f,76:u2,81:f2,82:c2,83:[1,1331],121:h2,123:790,124:I1,125:w1,126:1332,127:d2,131:p2,132:b2,133:g2,137:E2,138:m2,139:v2,140:S2,141:T2,142:A2,143:N2,144:O2,145:C2,146:R2,147:k2,148:I2,149:w2,150:_2,151:x2,152:D2,153:812,154:L2,155:V2,157:M2,158:U2,159:F2,161:P2,163:G2,165:y2,167:822,169:823,171:B2,173:J2,175:j2,177:H2,178:Y2,179:W2,180:X2,181:K2,182:q2,184:Q2,194:z2,196:Z2,266:H,267:Y,304:$2,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,456:204,457:I,461:k},e(s2,[2,1113],{162:1097,188:t3,189:r3,190:n3}),{2:t,3:787,4:r,5:i,6:s,7:a,8:o,9:f,76:u2,81:f2,82:c2,121:h2,123:790,124:I1,125:w1,126:1334,127:d2,131:p2,132:b2,133:g2,135:1333,137:E2,138:m2,139:v2,140:S2,141:T2,142:A2,143:N2,144:O2,145:C2,146:R2,147:k2,148:I2,149:w2,150:_2,151:x2,152:D2,153:812,154:L2,155:V2,157:M2,158:U2,159:F2,161:P2,163:G2,165:y2,167:822,169:823,171:B2,173:J2,175:j2,177:H2,178:Y2,179:W2,180:X2,181:K2,182:q2,184:Q2,194:z2,196:Z2,266:H,267:Y,304:$2,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1335,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1336,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:1337,4:r,5:i,6:s,7:a,8:o,9:f},e(Ae,[2,120]),e(Ae,[2,121]),e(Ae,[2,122]),e(Ae,[2,129]),{2:t,3:1338,4:r,5:i,6:s,7:a,8:o,9:f},{2:t,3:1086,4:r,5:i,6:s,7:a,8:o,9:f,120:1150,152:Ct,154:Rt,156:1339,229:Qe,281:ze,370:1149,371:1151},{2:t,3:1340,4:r,5:i,6:s,7:a,8:o,9:f},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:285,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,160:1341,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(Ae,[2,135]),e(s2,[2,1119],{164:1342}),e(s2,[2,1121],{166:1343}),e(s2,[2,1123],{168:1344}),e(s2,[2,1127],{170:1345}),e(H3,xt,{172:1346,187:1347}),{82:[1,1348]},e(s2,[2,1129],{174:1349}),e(s2,[2,1131],{176:1350}),e(H3,xt,{187:1347,172:1351}),e(H3,xt,{187:1347,172:1352}),e(H3,xt,{187:1347,172:1353}),e(H3,xt,{187:1347,172:1354}),{2:t,3:787,4:r,5:i,6:s,7:a,8:o,9:f,76:u2,81:f2,82:c2,121:h2,123:790,124:I1,125:w1,126:1355,127:d2,131:p2,132:b2,133:g2,137:E2,138:m2,139:v2,140:S2,141:T2,142:A2,143:N2,144:O2,145:C2,146:R2,147:k2,148:I2,149:w2,150:_2,151:x2,152:D2,153:812,154:L2,155:V2,157:M2,158:U2,159:F2,161:P2,163:G2,165:y2,167:822,169:823,171:B2,173:J2,175:j2,177:H2,178:Y2,179:W2,180:X2,181:K2,182:q2,184:Q2,194:z2,196:Z2,266:H,267:Y,304:$2,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:875,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,183:1356,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,279:874,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(F4,[2,1133],{185:1357}),e(B,[2,641],{192:[1,1358]}),e(B,[2,637],{192:[1,1359]}),e(B,[2,630]),{122:1360,141:y,329:G},e(B,[2,639],{192:[1,1361]}),e(B,[2,634]),e(B,[2,635],{121:[1,1362]}),e(vt,[2,73]),{2:t,3:258,4:r,5:i,6:s,7:a,8:o,9:f,79:1363},{44:1364,82:h,85:75,95:76,96:g,193:102,198:O},{78:Y3,83:[1,1365]},e(a2,P4),e(B,Ke,{369:1368,78:rr,137:[1,1367],503:qe}),e(yr,[2,472]),{133:[1,1370]},{2:t,3:1371,4:r,5:i,6:s,7:a,8:o,9:f},e(x3,[2,1189]),e(x3,[2,1190]),e(B,[2,653]),e(Hi,[2,376],{123:660,360:672,109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge}),e(L3,R4,{123:660,360:672,121:Z1,124:I1,125:w1,132:V1,142:U1,145:D1,147:F1,150:J1,151:j1,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,365:$1}),e([14,78,83,109,121,124,125,127,132,133,142,145,147,148,149,150,151,163,171,177,178,179,180,188,189,271,273,339,343,344,345,346,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,639,798],k4),e(l3,[2,723]),e(l3,[2,725]),e(B,[2,689]),e(B,[2,691],{123:660,360:672,109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge}),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1372,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:1165,4:r,5:i,6:s,7:a,8:o,9:f,82:m4,140:v4,470:1373},e(nr,[2,698]),e(nr,[2,699]),e(nr,[2,700]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1374,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1375,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{123:1163,124:I1,125:w1,133:[1,1376]},e(ye,[2,797]),e(St,[2,158],{78:kt}),e(St,[2,159],{78:kt}),e(St,[2,160],{78:kt}),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:875,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,279:1377,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:1378,4:r,5:i,6:s,7:a,8:o,9:f,122:1380,140:[1,1379],141:y,329:G},e(J3,[2,279]),e(J3,[2,281]),e(J3,[2,283]),e(zt,[2,170]),e(zt,[2,1142]),{83:[1,1381]},e(Ci,[2,800]),{2:t,3:1382,4:r,5:i,6:s,7:a,8:o,9:f},{2:t,3:1383,4:r,5:i,6:s,7:a,8:o,9:f},{2:t,3:1385,4:r,5:i,6:s,7:a,8:o,9:f,421:1384},{2:t,3:1385,4:r,5:i,6:s,7:a,8:o,9:f,421:1386},{2:t,3:1387,4:r,5:i,6:s,7:a,8:o,9:f},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:285,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,160:1388,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:1389,4:r,5:i,6:s,7:a,8:o,9:f},{78:e3,83:[1,1390]},e(t2,[2,365]),{82:[1,1391]},e(t2,[2,366]),e(t2,[2,367]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1392,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1393,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1394,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1395,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1396,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(Lr,[2,532]),e(B,In,{444:1397,81:wn,82:[1,1398]}),e(B,In,{444:1400,81:wn}),{82:[1,1401]},{2:t,3:268,4:r,5:i,6:s,7:a,8:o,9:f,208:1402},e(ye,[2,773]),e(ye,[2,775]),e(ye,[2,1220]),{152:P3,154:G3,469:1403},e(G4,[2,1221],{456:204,518:1404,153:1405,154:Ye,457:I,461:k}),{81:On,148:[2,1225],520:1406,522:1407},e([14,78,81,83,141,148,154,161,339,343,457,461,639,798],qi,{529:912,532:913,146:y3}),e(ye,[2,778]),e(ye,Sn),{78:Xi,83:[1,1408]},e(O3,[2,1239],{531:1409,536:1410,161:D3}),e(Mr,[2,1238]),e(O3,[2,787]),e(O3,[2,1244]),e(B,[2,518],{82:[1,1411]}),{81:[1,1413],82:[1,1412]},{109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,157:[1,1414],163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},e(Ce,y4,{85:75,95:76,193:102,507:1415,44:1418,82:h,96:g,155:B4,198:O,509:J4}),e(S4,[2,1214]),e(Tn,[2,765]),{250:[1,1419]},e(_n,[2,811]),e(_n,[2,812]),e(_n,[2,813]),e(Tt,zi,{548:1420,105:Zi,552:$i,553:e4,554:t4}),e(Tt,[2,810]),e(B,[2,324]),e(B,[2,325]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1421,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(l3,[2,731],{133:[1,1422]}),e(It,[2,576]),{140:[1,1424],425:1423,427:[1,1425]},e(It,[2,9]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1292,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,380:1426,456:204,457:I,461:k},e(B,Ke,{123:660,360:672,369:1427,109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge,503:qe}),e(Ce,[2,760],{78:kt,207:[1,1428]}),e(B,[2,624]),e(B,[2,625]),{2:t,3:268,4:r,5:i,6:s,7:a,8:o,9:f,208:1429},e(B,[2,709]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1430,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1431,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{83:[1,1432],109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},{83:[1,1433],109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,44:1434,60:175,82:F3,85:75,95:76,96:g,104:285,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,160:1435,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,193:102,198:O,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{83:[1,1436]},{78:e3,83:[1,1437]},e(he,[2,447]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1438,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,44:1439,60:175,82:F3,83:[1,1441],85:75,95:76,96:g,104:285,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,160:1440,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,193:102,198:O,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(he,[2,450]),e(he,[2,452]),e(he,er,{303:1442,307:tr}),{83:[1,1443],109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},{83:[1,1444],109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},{9:j4,83:H4,306:1445},{128:[1,1447]},e(kn,I4,{123:660,360:672,305:1448,109:le,121:Z1,124:I1,125:w1,127:w4,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge}),{2:t,3:1449,4:r,5:i,6:s,7:a,8:o,9:f,189:[1,1450]},e(wt,[2,295]),e(u3,[2,654]),e(he,[2,384]),{339:[1,1451]},e(he,[2,391]),{109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,339:[2,395],344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1452,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{4:At,11:940,300:1453,424:939,426:Nt},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1454,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(u3,[2,677]),e(u4,[2,687]),e(C3,[2,672]),e(wt,_4),e(u3,[2,674]),e(et,[2,679]),e(et,[2,681]),e(et,[2,684]),e(et,[2,682]),e(et,[2,685]),e(et,[2,683]),e(et,[2,686]),e(Ce,Ke,{369:1456,78:c3,503:qe}),e(Ce,[2,479]),{82:[1,1457],152:w,153:1458,154:Ye,161:_,190:x,210:1459,335:D,456:204,457:I,461:k},e(Ce,Ke,{369:1460,503:qe}),{78:Y3,83:[1,1461]},{78:xn,83:[1,1462]},e([78,83,109,121,124,125,132,133,142,145,147,148,149,150,151,163,179,180,188,189,344,345,346,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366],P4),e(r2,[2,507],{123:660,360:672,109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge}),e(Ce,[2,493]),e(Ce,Ke,{369:1464,78:rr,503:qe}),{82:B3,152:w,153:1056,154:Ye,161:_,190:x,210:1057,335:D,376:1465,456:204,457:I,461:k},e(Ce,Ke,{369:1466,78:c3,503:qe}),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,44:308,60:175,82:F3,84:1467,85:75,95:76,96:g,104:1292,120:1291,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,193:102,198:O,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,380:1290,456:204,457:I,461:k},e(Ce,Ke,{369:1468,503:qe}),{44:1471,82:Dn,85:75,95:76,96:g,152:w,153:1056,154:Ye,158:ct,161:_,190:x,193:102,198:O,210:1057,335:D,375:1469,376:1470,379:ht,456:204,457:I,461:k},e(Ce,Ke,{369:1473,78:c3,503:qe}),e(Ce,[2,489]),e(B,Ke,{369:1474,497:1475,498:1476,341:D4,503:qe}),e(n2,[2,743]),e(n2,[2,744]),{163:[1,1478],499:[1,1477]},{109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,341:[2,740],344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},{83:[1,1479]},{44:1480,82:h,85:75,95:76,96:g,193:102,198:O},e(xe,[2,190]),e(xe,[2,1144]),e(B,[2,609]),e(Ln,Y4,{90:1481,137:W4}),e(T3,[2,1094]),{82:[1,1483]},{82:[1,1484]},e(Ot,[2,179],{213:1485,232:1487,214:1488,233:1489,241:1492,78:Vn,215:Br,217:Jr,242:jr,243:ir,244:sr,245:ar,246:or,247:lr,248:ur,249:fr}),{2:t,3:235,4:r,5:i,6:s,7:a,8:o,9:f,44:753,82:L4,85:75,95:76,96:g,141:z3,152:w,153:228,154:n1,161:_,165:V,190:x,193:102,198:O,208:229,209:231,210:230,211:232,212:1501,218:1318,227:233,229:Z3,293:$e,322:J,323:M,324:U,325:F,326:P,335:D,456:204,457:I,461:k},e(a2,[2,188]),{2:t,3:1086,4:r,5:i,6:s,7:a,8:o,9:f,119:1502,120:1084,121:p4,229:Qe,281:ze},e(Gr,[2,97]),e(f3,[2,274],{272:1503,273:[1,1504]}),{274:1505,275:[2,1169],800:[1,1506]},e(mn,[2,261],{78:dt}),e(W3,[2,262]),e(W3,[2,266],{123:660,360:672,109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,268:[1,1508],269:[1,1509],344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge}),e(Ot,h4,{88:1510,192:d4}),e(f3,[2,157],{123:660,360:672,109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge}),{83:[1,1511]},{78:e3,83:[2,1118]},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,83:[2,1111],104:1325,120:159,122:163,129:1512,130:1513,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,263:1324,266:H,267:Y,268:[1,1514],280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(Ae,[2,108]),e(s2,[2,1114],{162:1097,188:t3,189:r3,190:n3}),{2:t,3:787,4:r,5:i,6:s,7:a,8:o,9:f,76:u2,81:f2,82:c2,83:[1,1515],121:h2,123:790,124:I1,125:w1,126:1516,127:d2,131:p2,132:b2,133:g2,137:E2,138:m2,139:v2,140:S2,141:T2,142:A2,143:N2,144:O2,145:C2,146:R2,147:k2,148:I2,149:w2,150:_2,151:x2,152:D2,153:812,154:L2,155:V2,157:M2,158:U2,159:F2,161:P2,163:G2,165:y2,167:822,169:823,171:B2,173:J2,175:j2,177:H2,178:Y2,179:W2,180:X2,181:K2,182:q2,184:Q2,194:z2,196:Z2,266:H,267:Y,304:$2,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,456:204,457:I,461:k},e(s2,[2,1115],{162:1097,188:t3,189:r3,190:n3}),{83:[1,1517],109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},{83:[1,1518],109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},{83:[1,1519]},e(Ae,[2,130]),{78:rr,83:[1,1520]},e(Ae,[2,132]),{78:e3,83:[1,1521]},{2:t,3:787,4:r,5:i,6:s,7:a,8:o,9:f,76:u2,81:f2,82:c2,83:[1,1522],121:h2,123:790,124:I1,125:w1,126:1523,127:d2,131:p2,132:b2,133:g2,137:E2,138:m2,139:v2,140:S2,141:T2,142:A2,143:N2,144:O2,145:C2,146:R2,147:k2,148:I2,149:w2,150:_2,151:x2,152:D2,153:812,154:L2,155:V2,157:M2,158:U2,159:F2,161:P2,163:G2,165:y2,167:822,169:823,171:B2,173:J2,175:j2,177:H2,178:Y2,179:W2,180:X2,181:K2,182:q2,184:Q2,194:z2,196:Z2,266:H,267:Y,304:$2,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,456:204,457:I,461:k},{2:t,3:787,4:r,5:i,6:s,7:a,8:o,9:f,76:u2,81:f2,82:c2,83:[1,1524],121:h2,123:790,124:I1,125:w1,126:1525,127:d2,131:p2,132:b2,133:g2,137:E2,138:m2,139:v2,140:S2,141:T2,142:A2,143:N2,144:O2,145:C2,146:R2,147:k2,148:I2,149:w2,150:_2,151:x2,152:D2,153:812,154:L2,155:V2,157:M2,158:U2,159:F2,161:P2,163:G2,165:y2,167:822,169:823,171:B2,173:J2,175:j2,177:H2,178:Y2,179:W2,180:X2,181:K2,182:q2,184:Q2,194:z2,196:Z2,266:H,267:Y,304:$2,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,456:204,457:I,461:k},{2:t,3:787,4:r,5:i,6:s,7:a,8:o,9:f,76:u2,81:f2,82:c2,83:[1,1526],121:h2,123:790,124:I1,125:w1,126:1527,127:d2,131:p2,132:b2,133:g2,137:E2,138:m2,139:v2,140:S2,141:T2,142:A2,143:N2,144:O2,145:C2,146:R2,147:k2,148:I2,149:w2,150:_2,151:x2,152:D2,153:812,154:L2,155:V2,157:M2,158:U2,159:F2,161:P2,163:G2,165:y2,167:822,169:823,171:B2,173:J2,175:j2,177:H2,178:Y2,179:W2,180:X2,181:K2,182:q2,184:Q2,194:z2,196:Z2,266:H,267:Y,304:$2,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,456:204,457:I,461:k},{2:t,3:787,4:r,5:i,6:s,7:a,8:o,9:f,76:u2,81:f2,82:c2,83:[1,1528],121:h2,123:790,124:I1,125:w1,126:1529,127:d2,131:p2,132:b2,133:g2,137:E2,138:m2,139:v2,140:S2,141:T2,142:A2,143:N2,144:O2,145:C2,146:R2,147:k2,148:I2,149:w2,150:_2,151:x2,152:D2,153:812,154:L2,155:V2,157:M2,158:U2,159:F2,161:P2,163:G2,165:y2,167:822,169:823,171:B2,173:J2,175:j2,177:H2,178:Y2,179:W2,180:X2,181:K2,182:q2,184:Q2,194:z2,196:Z2,266:H,267:Y,304:$2,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,456:204,457:I,461:k},{78:Dt,83:[1,1530]},e(r2,[2,153],{456:204,3:787,123:790,153:812,167:822,169:823,126:1532,2:t,4:r,5:i,6:s,7:a,8:o,9:f,76:u2,81:f2,82:c2,121:h2,124:I1,125:w1,127:d2,131:p2,132:b2,133:g2,137:E2,138:m2,139:v2,140:S2,141:T2,142:A2,143:N2,144:O2,145:C2,146:R2,147:k2,148:I2,149:w2,150:_2,151:x2,152:D2,154:L2,155:V2,157:M2,158:U2,159:F2,161:P2,163:G2,165:y2,171:B2,173:J2,175:j2,177:H2,178:Y2,179:W2,180:X2,181:K2,182:q2,184:Q2,194:z2,196:Z2,266:H,267:Y,304:$2,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,457:I,461:k}),e(H3,xt,{187:1347,172:1533}),{2:t,3:787,4:r,5:i,6:s,7:a,8:o,9:f,76:u2,81:f2,82:c2,83:[1,1534],121:h2,123:790,124:I1,125:w1,126:1535,127:d2,131:p2,132:b2,133:g2,137:E2,138:m2,139:v2,140:S2,141:T2,142:A2,143:N2,144:O2,145:C2,146:R2,147:k2,148:I2,149:w2,150:_2,151:x2,152:D2,153:812,154:L2,155:V2,157:M2,158:U2,159:F2,161:P2,163:G2,165:y2,167:822,169:823,171:B2,173:J2,175:j2,177:H2,178:Y2,179:W2,180:X2,181:K2,182:q2,184:Q2,194:z2,196:Z2,266:H,267:Y,304:$2,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,456:204,457:I,461:k},{2:t,3:787,4:r,5:i,6:s,7:a,8:o,9:f,76:u2,81:f2,82:c2,83:[1,1536],121:h2,123:790,124:I1,125:w1,126:1537,127:d2,131:p2,132:b2,133:g2,137:E2,138:m2,139:v2,140:S2,141:T2,142:A2,143:N2,144:O2,145:C2,146:R2,147:k2,148:I2,149:w2,150:_2,151:x2,152:D2,153:812,154:L2,155:V2,157:M2,158:U2,159:F2,161:P2,163:G2,165:y2,167:822,169:823,171:B2,173:J2,175:j2,177:H2,178:Y2,179:W2,180:X2,181:K2,182:q2,184:Q2,194:z2,196:Z2,266:H,267:Y,304:$2,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,456:204,457:I,461:k},{78:Dt,83:[1,1538]},{78:Dt,83:[1,1539]},{78:Dt,83:[1,1540]},{78:Dt,83:[1,1541]},{83:[1,1542],162:1097,188:t3,189:r3,190:n3},{78:kt,83:[1,1543]},{2:t,3:787,4:r,5:i,6:s,7:a,8:o,9:f,76:u2,78:[1,1544],81:f2,82:c2,121:h2,123:790,124:I1,125:w1,126:1545,127:d2,131:p2,132:b2,133:g2,137:E2,138:m2,139:v2,140:S2,141:T2,142:A2,143:N2,144:O2,145:C2,146:R2,147:k2,148:I2,149:w2,150:_2,151:x2,152:D2,153:812,154:L2,155:V2,157:M2,158:U2,159:F2,161:P2,163:G2,165:y2,167:822,169:823,171:B2,173:J2,175:j2,177:H2,178:Y2,179:W2,180:X2,181:K2,182:q2,184:Q2,194:z2,196:Z2,266:H,267:Y,304:$2,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,456:204,457:I,461:k},{2:t,3:1546,4:r,5:i,6:s,7:a,8:o,9:f},{2:t,3:1547,4:r,5:i,6:s,7:a,8:o,9:f},e(B,[2,632]),{2:t,3:1548,4:r,5:i,6:s,7:a,8:o,9:f},{122:1549,141:y,329:G},e(vt,[2,74]),{83:[1,1550]},{81:[1,1551]},{2:t,3:1086,4:r,5:i,6:s,7:a,8:o,9:f,120:1552,229:Qe,281:ze},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1553,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(B,[2,471]),{2:t,3:1086,4:r,5:i,6:s,7:a,8:o,9:f,120:1150,152:Ct,154:Rt,229:Qe,281:ze,370:1554,371:1151},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1555,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{133:[1,1556]},e(B,[2,692],{123:660,360:672,109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge}),e(nr,[2,697]),{83:[1,1557],109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},e(B,[2,693],{123:660,360:672,109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge}),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1558,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(J3,[2,276]),e(J3,[2,278]),e(J3,[2,280]),e(J3,[2,282]),e(zt,[2,171]),e(B,[2,604]),{157:[1,1559]},e(B,[2,605]),e(ye,[2,571],{424:939,11:940,300:1560,4:At,423:[1,1561],426:Nt}),e(B,[2,606]),e(B,[2,608]),{78:e3,83:[1,1562]},e(B,[2,612]),e(t2,er,{303:1563,307:tr}),e(Mn,[2,1179],{308:1564,310:1565,311:[1,1566]}),{78:[1,1567],109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},{78:[1,1568],109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},{78:[1,1569],109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},{78:[1,1570],109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},{78:[1,1571],109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},e(B,[2,616]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:285,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,160:1572,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:1573,4:r,5:i,6:s,7:a,8:o,9:f},e(B,[2,618]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1325,120:159,122:163,129:1574,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,263:1324,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{82:[1,1575]},{2:t,3:1576,4:r,5:i,6:s,7:a,8:o,9:f},{81:On,148:[2,1223],519:1577,522:1578},e(G4,[2,1222]),{148:[1,1579]},{148:[2,1226]},e(ye,[2,779]),e(O3,[2,786]),e(O3,[2,1240]),{2:t,3:1385,4:r,5:i,6:s,7:a,8:o,9:f,81:[1,1582],386:1580,393:1581,421:1583},{2:t,3:1086,4:r,5:i,6:s,7:a,8:o,9:f,84:1584,120:1147,229:Qe,281:ze},{44:1585,82:h,85:75,95:76,96:g,193:102,198:O},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1586,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(Ce,[2,764]),{2:t,3:1086,4:r,5:i,6:s,7:a,8:o,9:f,120:1150,152:Ct,154:Rt,156:1587,229:Qe,281:ze,370:1149,371:1151},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:285,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,160:1588,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(Ce,[2,769]),{2:t,3:268,4:r,5:i,6:s,7:a,8:o,9:f,208:1589},{368:T4,372:A4,373:N4,549:1590},e(l3,[2,732],{123:660,360:672,109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge}),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1591,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{78:[1,1592],83:[1,1593]},e(r2,[2,578]),e(r2,[2,579]),{78:xn,83:[1,1594]},e(B,[2,476]),{2:t,3:268,4:r,5:i,6:s,7:a,8:o,9:f,152:P3,154:G3,208:1596,469:1595},e(l3,[2,600]),e(Fr,[2,401],{123:660,360:672,124:I1,125:w1,132:V1,142:U1,145:D1,147:F1,150:J1,151:j1,188:G1,189:P1,345:L1,349:x1,350:y1,351:H1,352:Y1}),e(Fr,[2,403],{123:660,360:672,124:I1,125:w1,132:V1,142:U1,145:D1,147:F1,150:J1,151:j1,188:G1,189:P1,345:L1,349:x1,350:y1,351:H1,352:Y1}),e(he,[2,417]),e(he,[2,421]),{83:[1,1597]},{78:e3,83:[1,1598]},e(he,[2,443]),e(he,[2,445]),{83:[1,1599],109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},{83:[1,1600]},{78:e3,83:[1,1601]},e(he,[2,448]),e(he,[2,340]),e(he,er,{303:1602,307:tr}),e(he,er,{303:1603,307:tr}),{83:[1,1604]},{141:[1,1605]},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1325,120:159,122:163,129:1606,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,263:1324,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{9:j4,83:H4,306:1607},e(wt,[2,290]),e(he,[2,285]),e(he,[2,390]),e(Nn,[2,394],{123:660,360:672,109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge}),{78:[1,1609],83:[1,1608]},{78:[1,1611],83:[1,1610],109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},{2:t,3:1449,4:r,5:i,6:s,7:a,8:o,9:f},e(Ce,[2,478]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1292,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,380:1612,456:204,457:I,461:k},e(_t,[2,505]),e(_t,[2,506]),e(Ce,[2,490]),{44:1615,82:Dn,85:75,95:76,96:g,152:w,153:1056,154:Ye,158:ct,161:_,190:x,193:102,198:O,210:1057,335:D,375:1613,376:1614,379:ht,456:204,457:I,461:k},e(_t,[2,501]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1616,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(Ce,[2,496]),e(Ce,Ke,{369:1617,78:c3,503:qe}),e(Ce,[2,481]),{78:Y3,83:[1,1618]},e(Ce,[2,484]),{82:B3,152:w,153:1056,154:Ye,161:_,190:x,210:1057,335:D,376:1619,456:204,457:I,461:k},e(Ce,Ke,{369:1620,78:c3,503:qe}),e(Ce,Ke,{369:1621,503:qe}),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,44:308,60:175,82:F3,85:75,95:76,96:g,104:1292,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,193:102,198:O,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,380:1290,456:204,457:I,461:k},e(Ce,[2,488]),e(B,[2,735]),e(n2,[2,741]),e(n2,[2,742]),{179:[1,1623],342:[1,1622]},{499:[1,1624]},{250:[2,739]},{83:[1,1625]},e(j3,X4,{91:1626,252:K4}),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1628,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1629,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:1630,4:r,5:i,6:s,7:a,8:o,9:f},e(Ot,[2,180],{233:1489,241:1492,232:1632,214:1633,78:[1,1631],215:Br,217:Jr,242:jr,243:ir,244:sr,245:ar,246:or,247:lr,248:ur,249:fr}),{2:t,3:235,4:r,5:i,6:s,7:a,8:o,9:f,82:Ar,141:z3,152:w,153:228,154:n1,161:_,165:V,190:x,208:229,209:231,210:230,211:232,218:1634,227:233,229:Z3,293:$e,322:J,323:M,324:U,325:F,326:P,335:D,456:204,457:I,461:k},e(a2,[2,208]),e(a2,[2,209]),{2:t,3:235,4:r,5:i,6:s,7:a,8:o,9:f,82:[1,1639],152:w,153:1637,154:n1,161:_,165:V,190:x,208:1636,209:1640,210:1638,211:1641,234:1635,293:$e,322:J,323:M,324:U,325:F,326:P,335:D,456:204,457:I,461:k},{216:[1,1642],243:q4},{216:[1,1644],243:Q4},e(p3,[2,217]),{215:[1,1648],217:[1,1647],241:1646,243:ir,244:sr,245:ar,246:or,247:lr,248:ur,249:fr},e(p3,[2,219]),{243:[1,1649]},{217:[1,1651],243:[1,1650]},{217:[1,1653],243:[1,1652]},{217:[1,1654]},{243:[1,1655]},{243:[1,1656]},{78:Vn,213:1657,214:1488,215:Br,217:Jr,232:1487,233:1489,241:1492,242:jr,243:ir,244:sr,245:ar,246:or,247:lr,248:ur,249:fr},e(Gr,[2,94]),e(f3,[2,272]),{140:L,205:1658},{275:[1,1659]},{275:[2,1170]},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1325,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,263:1660,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(W3,[2,267],{264:1661,265:[1,1662]}),{270:[1,1663]},e(T3,[2,1101],{101:1664,102:1665,103:M4,108:U4}),e(Ae,[2,110]),{78:dt,83:[1,1666]},{83:[1,1667]},{83:[2,1112]},e(Ae,[2,109]),e(s2,[2,1116],{162:1097,188:t3,189:r3,190:n3}),e(Ae,[2,111]),e(Ae,[2,112]),e(Ae,[2,113]),e(Ae,[2,131]),e(Ae,[2,134]),e(Ae,[2,137]),e(s2,[2,1120],{162:1097,188:t3,189:r3,190:n3}),e(Ae,[2,138]),e(s2,[2,1122],{162:1097,188:t3,189:r3,190:n3}),e(Ae,[2,139]),e(s2,[2,1124],{162:1097,188:t3,189:r3,190:n3}),e(Ae,[2,140]),e(s2,[2,1128],{162:1097,188:t3,189:r3,190:n3}),e(Ae,[2,141]),e(H3,[2,1135],{186:1668}),e(H3,[2,1138],{162:1097,188:t3,189:r3,190:n3}),{78:Dt,83:[1,1669]},e(Ae,[2,143]),e(s2,[2,1130],{162:1097,188:t3,189:r3,190:n3}),e(Ae,[2,144]),e(s2,[2,1132],{162:1097,188:t3,189:r3,190:n3}),e(Ae,[2,145]),e(Ae,[2,146]),e(Ae,[2,147]),e(Ae,[2,148]),e(Ae,[2,149]),e(Ae,[2,150]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:285,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,160:1670,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(F4,[2,1134],{162:1097,188:t3,189:r3,190:n3}),e(B,[2,642]),e(B,[2,638]),e(B,[2,640]),e(B,[2,636]),e(vt,[2,77]),{82:[1,1671]},e(a2,[2,516]),e(B,Ke,{123:660,360:672,369:1672,109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge,503:qe}),e(yr,[2,473]),e(yr,[2,474],{123:660,360:672,109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge}),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1673,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(nr,[2,701]),e(B,[2,694],{123:660,360:672,109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge}),{2:t,3:1674,4:r,5:i,6:s,7:a,8:o,9:f},e(ye,[2,580],{422:1675,428:1676,429:1677,401:1685,163:z4,196:Z4,250:$4,330:es,378:ts,391:rs,403:Un,404:ns,407:is,408:ss}),e(ye,[2,570]),e(B,[2,611],{81:[1,1689]}),e(t2,[2,364]),{83:[2,1181],127:[1,1692],309:1690,312:1691},e(Mn,[2,1180]),{128:[1,1693]},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1694,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1695,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1696,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1697,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1698,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{78:e3,83:[1,1699]},e(B,[2,620]),{78:dt,83:[1,1700]},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1325,120:159,122:163,129:1701,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,263:1324,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e([14,78,83,148,339,343,639,798],[2,783]),{148:[1,1702]},{148:[2,1224]},{2:t,3:1211,4:r,5:i,6:s,7:a,8:o,9:f,141:at,146:y3,152:P3,154:G3,161:D3,469:620,514:1213,517:1703,521:617,532:614,536:616},{83:[1,1704]},{78:[1,1705],83:[2,534]},{44:1706,82:h,85:75,95:76,96:g,193:102,198:O},e(r2,[2,567]),{78:Y3,83:[1,1707]},e(B,[2,1207],{449:1708,450:1709,76:as}),e(Ce,y4,{85:75,95:76,193:102,123:660,360:672,44:1418,507:1711,82:h,96:g,109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,155:B4,163:ce,179:Ee,180:me,188:G1,189:P1,198:O,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge,509:J4}),e(Ce,[2,767],{78:rr}),e(Ce,[2,768],{78:e3}),e([14,57,76,82,96,133,155,165,198,294,295,322,339,343,368,372,373,433,437,438,441,443,445,446,454,455,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,545,546,555,639,798],[2,1255],{550:1712,3:1713,2:t,4:r,5:i,6:s,7:a,8:o,9:f,81:[1,1714]}),e(Fn,[2,1257],{551:1715,81:[1,1716]}),e(l3,[2,733],{123:660,360:672,109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge}),{140:[1,1717]},e(It,[2,573]),e(It,[2,575]),{2:t,3:1718,4:r,5:i,6:s,7:a,8:o,9:f},e(Ce,[2,762],{82:[1,1719]}),e(he,[2,433]),e(he,[2,434]),e(he,[2,460]),e(he,[2,444]),e(he,[2,446]),e(he,[2,341]),e(he,[2,342]),e(he,[2,343]),{83:[2,352]},e(kn,[2,350],{78:dt}),{83:[1,1720]},e(he,[2,328]),{140:[1,1721]},e(he,[2,330]),{140:[1,1722]},{78:xn,83:[1,1723]},{82:B3,152:w,153:1056,154:Ye,161:_,190:x,210:1057,335:D,376:1724,456:204,457:I,461:k},e(Ce,Ke,{369:1725,78:c3,503:qe}),e(Ce,Ke,{369:1726,503:qe}),e(r2,[2,508],{123:660,360:672,109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge}),e(Ce,[2,480]),{44:1729,82:Dn,85:75,95:76,96:g,152:w,153:1056,154:Ye,158:ct,161:_,190:x,193:102,198:O,210:1057,335:D,375:1727,376:1728,379:ht,456:204,457:I,461:k},e(Ce,Ke,{369:1730,78:c3,503:qe}),e(Ce,[2,487]),e(Ce,[2,494]),{368:Pn,372:Gn,500:1731},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1734,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{128:[1,1736],179:[1,1737],342:[1,1735]},e([78,215,217,242,243,244,245,246,247,248,249],V4,{3:759,219:1309,230:1310,2:t,4:r,5:i,6:s,7:a,8:o,9:f,81:S3,83:tt,127:tt,171:tt,177:tt,178:tt,271:tt,273:tt}),e(it,on,{260:243,92:1738,171:ln,177:un,178:fn}),{128:[1,1739]},e(Ln,[2,235],{123:660,360:672,109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge}),{105:[1,1740],109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},{105:[1,1741]},{2:t,3:235,4:r,5:i,6:s,7:a,8:o,9:f,82:Ar,141:z3,152:w,153:228,154:n1,161:_,165:V,190:x,208:229,209:231,210:230,211:232,212:1742,218:1318,227:233,229:Z3,293:$e,322:J,323:M,324:U,325:F,326:P,335:D,456:204,457:I,461:k},e(a2,[2,206]),e(a2,[2,207]),e(a2,[2,189]),e(a2,[2,233],{235:1743,250:[1,1744],251:[1,1745]}),e(xe,[2,1159],{3:759,236:1746,230:1747,2:t,4:r,5:i,6:s,7:a,8:o,9:f,81:S3}),e(Dr,[2,1161],{237:1748,81:[1,1749]}),{2:t,3:759,4:r,5:i,6:s,7:a,8:o,9:f,81:S3,230:1750},{44:1751,82:h,85:75,95:76,96:g,193:102,198:O},e(xe,[2,1165],{3:759,239:1752,230:1753,2:t,4:r,5:i,6:s,7:a,8:o,9:f,81:S3}),e(xe,[2,1167],{3:759,240:1754,230:1755,2:t,4:r,5:i,6:s,7:a,8:o,9:f,81:S3}),{82:[1,1756]},e(p3,[2,229]),{82:[1,1757]},e(p3,[2,225]),e(p3,[2,218]),{243:Q4},{243:q4},e(p3,[2,220]),e(p3,[2,221]),{243:[1,1758]},e(p3,[2,223]),{243:[1,1759]},{243:[1,1760]},e(p3,[2,227]),e(p3,[2,228]),{83:[1,1761],214:1633,215:Br,217:Jr,232:1632,233:1489,241:1492,242:jr,243:ir,244:sr,245:ar,246:or,247:lr,248:ur,249:fr},e(f3,[2,275]),{140:[2,1171],276:1762,681:[1,1763]},e(W3,[2,263]),e(W3,[2,268]),{266:[1,1764],267:[1,1765]},e(W3,[2,269],{268:[1,1766]}),e(Ln,Y4,{90:1767,137:W4}),e(T3,[2,1102]),e(Ae,[2,101]),e(Ae,[2,102]),e(r2,[2,152],{456:204,3:787,123:790,153:812,167:822,169:823,126:1768,2:t,4:r,5:i,6:s,7:a,8:o,9:f,76:u2,81:f2,82:c2,121:h2,124:I1,125:w1,127:d2,131:p2,132:b2,133:g2,137:E2,138:m2,139:v2,140:S2,141:T2,142:A2,143:N2,144:O2,145:C2,146:R2,147:k2,148:I2,149:w2,150:_2,151:x2,152:D2,154:L2,155:V2,157:M2,158:U2,159:F2,161:P2,163:G2,165:y2,171:B2,173:J2,175:j2,177:H2,178:Y2,179:W2,180:X2,181:K2,182:q2,184:Q2,194:z2,196:Z2,266:H,267:Y,304:$2,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,457:I,461:k}),e(Ae,[2,142]),{78:e3,83:[1,1769]},{44:1770,82:h,85:75,95:76,96:g,193:102,198:O},e(B,[2,470]),e(yr,[2,475],{123:660,360:672,109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge}),e(B,[2,607]),e(ye,[2,569]),e(ye,[2,581],{401:1685,429:1771,163:z4,196:Z4,250:$4,330:es,378:ts,391:rs,403:Un,404:ns,407:is,408:ss}),e(De,[2,583]),{6:[1,1772]},{6:[1,1773]},{2:t,3:268,4:r,5:i,6:s,7:a,8:o,9:f,208:1774},e(De,[2,589],{82:[1,1775]}),{2:t,3:122,4:r,5:i,6:s,7:a,8:o,9:f,82:[1,1777],122:275,140:L,141:y,152:w,161:_,165:V,190:x,205:274,209:1778,210:278,284:276,285:277,292:cn,293:hn,302:1776,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,335:D},e(De,[2,593]),{330:[1,1779]},e(De,[2,595]),e(De,[2,596]),{368:[1,1780]},{82:[1,1781]},{2:t,3:1782,4:r,5:i,6:s,7:a,8:o,9:f},{83:[1,1783]},{83:[2,1182]},{128:[1,1784]},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1790,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,253:1785,255:Lt,256:Vt,257:1786,258:Mt,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{83:[1,1791],109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},{83:[1,1792],109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},{83:[1,1793],109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},{83:[1,1794],109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},{83:[1,1795],109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},e(B,In,{444:1796,81:wn}),e(B,[2,626]),{78:dt,83:[1,1797]},{2:t,3:1211,4:r,5:i,6:s,7:a,8:o,9:f,141:at,146:y3,152:P3,154:G3,161:D3,469:620,514:1213,517:1798,521:617,532:614,536:616},e(ye,[2,777]),e(B,[2,521],{387:1799,389:1800,390:1801,4:os,269:ls,378:us,391:fs}),e(Hr,yn,{3:1385,394:1806,421:1807,395:1808,396:1809,2:t,4:r,5:i,6:s,7:a,8:o,9:f,402:Bn}),{83:[2,535]},{81:[1,1811]},e(B,[2,644]),e(B,[2,1208]),{403:[1,1813],451:[1,1812]},e(Ce,[2,770]),e(B,n,{21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,16:1814,2:t,4:r,5:i,6:s,7:a,8:o,9:f,57:E,76:p,82:h,96:g,133:A,155:v,165:T,198:O,294:b,295:C1,322:C,368:a1,372:r1,373:j,433:i1,437:k1,438:W1,441:z1,443:R,445:M1,446:ee,454:_1,455:X1,466:Se,472:Ie,474:Xe,475:Ve,477:we,478:Ge,479:Me,480:Ze,481:Re,482:Oe,483:Pe,487:He,488:o3,491:v3,492:k3,545:I3,546:w3,555:_3}),e(B,[2,804]),e(Fn,[2,1256]),e(B,n,{21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,16:1815,2:t,4:r,5:i,6:s,7:a,8:o,9:f,57:E,76:p,82:h,96:g,133:A,155:v,165:T,198:O,294:b,295:C1,322:C,368:a1,372:r1,373:j,433:i1,437:k1,438:W1,441:z1,443:R,445:M1,446:ee,454:_1,455:X1,466:Se,472:Ie,474:Xe,475:Ve,477:we,478:Ge,479:Me,480:Ze,481:Re,482:Oe,483:Pe,487:He,488:o3,491:v3,492:k3,545:I3,546:w3,555:_3}),e(Fn,[2,1258]),{83:[1,1816]},e(Ce,[2,761]),{2:t,3:1086,4:r,5:i,6:s,7:a,8:o,9:f,84:1817,120:1147,229:Qe,281:ze},e(he,[2,344]),{83:[1,1818]},{83:[1,1819]},e(_t,[2,504]),e(Ce,Ke,{369:1820,78:c3,503:qe}),e(Ce,[2,492]),e(Ce,[2,495]),{82:B3,152:w,153:1056,154:Ye,161:_,190:x,210:1057,335:D,376:1821,456:204,457:I,461:k},e(Ce,Ke,{369:1822,78:c3,503:qe}),e(Ce,Ke,{369:1823,503:qe}),e(Ce,[2,486]),e(n2,[2,745]),e(n2,[2,747]),{155:[1,1824]},{109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,342:[1,1825],344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},{373:cr,501:1826},{454:[1,1829],502:[1,1828]},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1830,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(mn,Bi,{93:1831,127:Ji}),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1790,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,253:1832,255:Lt,256:Vt,257:1786,258:Mt,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:1833,4:r,5:i,6:s,7:a,8:o,9:f},{2:t,3:1834,4:r,5:i,6:s,7:a,8:o,9:f},e(Ot,[2,181],{78:Vn}),e(a2,[2,210]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1835,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:1086,4:r,5:i,6:s,7:a,8:o,9:f,82:[1,1837],84:1836,120:1147,229:Qe,281:ze},e(xe,[2,211]),e(xe,[2,1160]),e(xe,[2,1163],{238:1838,3:1839,2:t,4:r,5:i,6:s,7:a,8:o,9:f}),e(Dr,[2,1162]),e(xe,[2,213]),{83:[1,1840]},e(xe,[2,215]),e(xe,[2,1166]),e(xe,[2,216]),e(xe,[2,1168]),{44:1841,82:h,85:75,95:76,96:g,193:102,198:O},{44:1842,82:h,85:75,95:76,96:g,193:102,198:O},e(p3,[2,222]),e(p3,[2,224]),e(p3,[2,226]),e(Ot,[2,182]),{140:L,205:1843},{140:[2,1172]},e(W3,[2,264]),e(W3,[2,265]),e(W3,[2,270]),e(j3,X4,{91:1844,252:K4}),e(H3,[2,1136],{162:1097,188:t3,189:r3,190:n3}),e(Ae,[2,151]),{83:[1,1845]},e(De,[2,582]),e(De,[2,585]),{408:[1,1846]},e(De,[2,1201],{432:1847,430:1848,82:cs}),{140:L,205:1850},e(De,[2,590]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1851,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(De,[2,592]),e(De,[2,594]),{2:t,3:122,4:r,5:i,6:s,7:a,8:o,9:f,82:[1,1853],122:275,140:L,141:y,152:w,161:_,165:V,190:x,205:274,209:279,210:278,284:276,285:277,292:cn,293:hn,302:1852,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,335:D},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1854,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(B,[2,613]),e(t2,[2,346]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1325,120:159,122:163,129:1855,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,263:1324,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(Mn,[2,347],{78:hr}),e(Ut,[2,240]),{155:[1,1857]},{82:[1,1858]},{82:[1,1859]},e(Ut,[2,245],{123:660,360:672,109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge}),e(t2,[2,369]),e(t2,[2,370]),e(t2,[2,371]),e(t2,[2,372]),e(t2,[2,373]),e(B,[2,617]),e(B,[2,627]),e(ye,[2,776]),e(B,[2,517]),e(B,[2,522],{390:1860,4:os,269:ls,378:us,391:fs}),e(Ft,[2,524]),e(Ft,[2,525]),{133:[1,1861]},{133:[1,1862]},{133:[1,1863]},{78:[1,1864],83:[2,533]},e(r2,[2,568]),e(r2,[2,536]),{196:[1,1872],202:[1,1873],397:1865,398:1866,399:1867,400:1868,401:1869,403:Un,404:[1,1870],407:[1,1871]},{2:t,3:1874,4:r,5:i,6:s,7:a,8:o,9:f},{44:1875,82:h,85:75,95:76,96:g,193:102,198:O},{452:[1,1876]},{453:[1,1877]},e(B,[2,803]),e(B,[2,805]),e(It,[2,572]),{78:Y3,83:[1,1878]},e(he,[2,329]),e(he,[2,331]),e(Ce,[2,491]),e(Ce,Ke,{369:1879,78:c3,503:qe}),e(Ce,[2,483]),e(Ce,[2,485]),{2:t,3:1086,4:r,5:i,6:s,7:a,8:o,9:f,120:1150,152:Ct,154:Rt,156:1880,229:Qe,281:ze,370:1149,371:1151},{368:Pn,372:Gn,500:1881},e(n2,[2,749]),{82:[1,1883],378:[1,1884],379:[1,1882]},{179:[1,1886],342:[1,1885]},{179:[1,1888],342:[1,1887]},{109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,342:[1,1889],344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},e(f3,b4,{94:1890,271:g4,273:E4}),e([14,83,127,171,177,178,271,273,339,343,503,639,798],Jn,{254:1891,76:[1,1892],78:hr,259:jn}),{83:[2,1103],106:1894,109:[1,1896],111:1895},{109:[1,1897]},e(a2,[2,230],{123:660,360:672,109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge}),e([14,76,83,103,108,127,137,171,177,178,215,217,242,243,244,245,246,247,248,249,252,271,273,339,343,503,639,798],[2,231],{78:Y3}),{2:t,3:1086,4:r,5:i,6:s,7:a,8:o,9:f,84:1898,120:1147,229:Qe,281:ze},e(xe,[2,212]),e(xe,[2,1164]),{2:t,3:759,4:r,5:i,6:s,7:a,8:o,9:f,81:S3,230:1899},{83:[1,1900]},{83:[1,1901]},e(hs,[2,1173],{277:1902,800:[1,1903]}),e(it,on,{260:243,92:1904,171:ln,177:un,178:fn}),e(vt,[2,78]),{2:t,3:268,4:r,5:i,6:s,7:a,8:o,9:f,208:1905},e(Yr,Hn,{410:1906,412:1907,413:1908,250:Yn}),e(De,[2,1202]),{2:t,3:1910,4:r,5:i,6:s,7:a,8:o,9:f},{78:[1,1911]},{83:[1,1912],109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},e(De,[2,597]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1913,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{83:[1,1914],109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},{78:dt,83:[2,348]},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1790,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,255:Lt,256:Vt,257:1915,258:Mt,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{82:[1,1916]},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1790,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,253:1917,255:Lt,256:Vt,257:1786,258:Mt,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1790,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,253:1918,255:Lt,256:Vt,257:1786,258:Mt,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},e(Ft,[2,523]),{2:t,3:1919,4:r,5:i,6:s,7:a,8:o,9:f},{140:L,205:1920},{2:t,3:1921,4:r,5:i,6:s,7:a,8:o,9:f},e(Hr,yn,{396:1809,395:1922,402:Bn}),e(ye,[2,538]),e(ye,[2,539]),e(ye,[2,540]),e(ye,[2,541]),e(ye,[2,542]),{6:[1,1923]},{6:[1,1924]},e([2,4,5,7,8,9,82],[2,1195],{419:1925,6:[1,1926]}),{2:t,3:1927,4:r,5:i,6:s,7:a,8:o,9:f},e(Hr,[2,544]),e(B,[2,1205],{448:1928,450:1929,76:as}),e(B,[2,645]),e(B,[2,646],{402:[1,1930]}),e(Ce,[2,763]),e(Ce,[2,482]),e(n2,[2,748],{78:rr}),e(n2,[2,746]),{82:B3,152:w,153:1056,154:Ye,161:_,190:x,210:1057,335:D,376:1931,456:204,457:I,461:k},{2:t,3:1086,4:r,5:i,6:s,7:a,8:o,9:f,84:1932,120:1147,229:Qe,281:ze},{379:[1,1933]},{373:cr,501:1934},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1935,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{373:cr,501:1936},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1937,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{373:cr,501:1938},e(f3,[2,79]),e(j3,[2,237]),{255:[1,1939],256:[1,1940]},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1941,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{83:[1,1942]},{83:[2,1104]},{82:[1,1943]},{82:[1,1944]},{78:Y3,83:[1,1945]},e(xe,[2,214]),{2:t,3:1946,4:r,5:i,6:s,7:a,8:o,9:f,81:[1,1947]},{2:t,3:1948,4:r,5:i,6:s,7:a,8:o,9:f,81:[1,1949]},e(f3,[2,1175],{278:1950,452:[1,1951]}),e(hs,[2,1174]),e(it,[2,82]),e(De,[2,1199],{431:1952,430:1953,82:cs}),e(De,[2,587]),e(Yr,[2,550],{413:1954,250:[1,1955]}),e(Yr,[2,551],{412:1956,250:[1,1957]}),{368:ds,372:ps},{83:[1,1960]},{140:L,205:1961},e(De,[2,591]),{83:[1,1962],109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},e(De,[2,545]),e(Ut,[2,241]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1790,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,253:1963,255:Lt,256:Vt,257:1786,258:Mt,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{78:hr,83:[1,1964]},{78:hr,83:[1,1965]},e(Ft,[2,526]),e(Ft,[2,527]),e(Ft,[2,528]),e(r2,[2,537]),{2:t,3:1967,4:r,5:i,6:s,7:a,8:o,9:f,82:[2,1191],405:1966},{82:[1,1968]},{2:t,3:1970,4:r,5:i,6:s,7:a,8:o,9:f,82:[2,1197],420:1969},e([2,4,5,6,7,8,9,82],[2,1196]),{82:[1,1971]},e(B,[2,643]),e(B,[2,1206]),e(Hr,yn,{396:1809,395:1972,402:Bn}),e(n2,[2,755],{78:c3}),{78:Y3,83:[1,1973]},e(n2,[2,757]),e(n2,[2,750]),{109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,342:[1,1974],344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},e(n2,[2,753]),{109:le,121:Z1,123:660,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,342:[1,1975],344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,360:672,363:de,364:pe,365:$1,366:ge},e(n2,[2,751]),e(j3,Jn,{254:1976,259:jn}),e(j3,Jn,{254:1977,259:jn}),e(j3,[2,247],{123:660,360:672,109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge}),e(T3,[2,1105],{107:1978,113:1979,3:1981,2:t,4:r,5:i,6:s,7:a,8:o,9:f,81:bs}),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1984,112:1982,114:1983,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:1086,4:r,5:i,6:s,7:a,8:o,9:f,84:1985,120:1147,229:Qe,281:ze},e(a2,[2,232]),e(a2,[2,184]),{2:t,3:1986,4:r,5:i,6:s,7:a,8:o,9:f},e(a2,[2,186]),{2:t,3:1987,4:r,5:i,6:s,7:a,8:o,9:f},e(f3,[2,273]),e(f3,[2,1176]),e(Yr,Hn,{412:1907,413:1908,410:1988,250:Yn}),e(De,[2,1200]),e(De,[2,552]),{368:ds},e(De,[2,553]),{372:ps},{155:gs,414:1989,415:Es,416:ms,417:vs},{155:gs,414:1994,415:Es,416:ms,417:vs},e(De,[2,584]),{83:[1,1995]},e(De,[2,598]),{78:hr,83:[1,1996]},e(Ut,[2,243]),e(Ut,[2,244]),{82:[1,1997]},{82:[2,1192]},{2:t,3:1999,4:r,5:i,6:s,7:a,8:o,9:f,141:Wr,406:1998},{82:[1,2001]},{82:[2,1198]},{2:t,3:1999,4:r,5:i,6:s,7:a,8:o,9:f,141:Wr,406:2002},e(B,[2,647]),{378:[1,2004],379:[1,2003]},{373:cr,501:2005},{368:Pn,372:Gn,500:2006},e(j3,[2,238]),e(j3,[2,239]),e(T3,[2,84]),e(T3,[2,1106]),{2:t,3:2007,4:r,5:i,6:s,7:a,8:o,9:f},e(T3,[2,88]),{78:[1,2009],83:[1,2008]},e(r2,[2,90]),e(r2,[2,91],{123:660,360:672,81:[1,2010],109:le,121:Z1,124:I1,125:w1,132:V1,133:be,142:U1,145:D1,147:F1,148:ue,149:fe,150:J1,151:j1,163:ce,179:Ee,180:me,188:G1,189:P1,344:K1,345:L1,346:q1,348:Q1,349:x1,350:y1,351:H1,352:Y1,353:te,354:re,355:ne,356:ie,357:se,358:ae,359:oe,363:de,364:pe,365:$1,366:ge}),{78:Y3,83:[1,2011]},e(a2,[2,185]),e(a2,[2,187]),e(De,[2,586]),e(De,[2,554]),e(De,[2,556]),{330:[1,2012],378:[1,2013]},e(De,[2,559]),{418:[1,2014]},e(De,[2,555]),e(De,[2,588]),e(Ut,[2,242]),{2:t,3:1999,4:r,5:i,6:s,7:a,8:o,9:f,141:Wr,406:2015},{78:Xr,83:[1,2016]},e(r2,[2,563]),e(r2,[2,564]),{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1325,120:159,122:163,129:2018,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,263:1324,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{78:Xr,83:[1,2019]},{82:B3,152:w,153:1056,154:Ye,161:_,190:x,210:1057,335:D,376:2020,456:204,457:I,461:k},{379:[1,2021]},e(n2,[2,752]),e(n2,[2,754]),e(T3,[2,87]),{83:[2,86]},{2:t,3:180,4:r,5:i,6:s,7:a,8:o,9:f,60:175,82:R1,104:1984,114:2022,120:159,122:163,140:L,141:y,146:o1,152:w,153:171,154:n1,158:l1,161:_,163:u1,165:V,167:178,188:f1,189:c1,190:x,205:161,209:157,210:165,211:166,229:h1,266:H,267:Y,280:160,281:d1,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:p1,293:b1,294:b,298:g1,299:E1,301:m1,304:v1,313:W,314:X,315:K,316:q,317:Q,318:z,319:Z,320:$,322:J,323:M,324:U,325:F,326:P,327:e1,328:t1,329:G,330:s1,331:S1,332:T1,335:D,336:A1,345:N1,350:O1,456:204,457:I,461:k},{2:t,3:2023,4:r,5:i,6:s,7:a,8:o,9:f},{83:[1,2024]},e(De,[2,557]),e(De,[2,558]),e(De,[2,560]),{78:Xr,83:[1,2025]},{408:[1,2026]},{2:t,3:2027,4:r,5:i,6:s,7:a,8:o,9:f,141:[1,2028]},{78:dt,83:[1,2029]},e(ye,[2,562]),e(n2,[2,756],{78:c3}),e(n2,[2,758]),e(r2,[2,89]),e(r2,[2,92]),e(T3,[2,1107],{3:1981,110:2030,113:2031,2:t,4:r,5:i,6:s,7:a,8:o,9:f,81:bs}),e(ye,[2,546]),{2:t,3:268,4:r,5:i,6:s,7:a,8:o,9:f,208:2032},e(r2,[2,565]),e(r2,[2,566]),e(ye,[2,561]),e(T3,[2,85]),e(T3,[2,1108]),e(Wn,[2,1193],{409:2033,411:2034,82:[1,2035]}),e(ye,Hn,{412:1907,413:1908,410:2036,250:Yn}),e(Wn,[2,1194]),{2:t,3:1999,4:r,5:i,6:s,7:a,8:o,9:f,141:Wr,406:2037},e(ye,[2,547]),{78:Xr,83:[1,2038]},e(Wn,[2,548])],defaultActions:{113:[2,10],208:[2,353],209:[2,354],210:[2,355],211:[2,356],212:[2,357],213:[2,358],214:[2,359],215:[2,360],216:[2,361],217:[2,362],225:[2,736],626:[2,1216],688:[2,1177],689:[2,1178],752:[2,737],834:[2,363],835:[2,1125],836:[2,1126],989:[2,467],990:[2,468],991:[2,469],1065:[2,738],1407:[2,1226],1479:[2,739],1506:[2,1170],1514:[2,1112],1578:[2,1224],1605:[2,352],1691:[2,1182],1706:[2,535],1763:[2,1172],1895:[2,1104],1967:[2,1192],1970:[2,1198],2008:[2,86]},parseError:function(ve,ke){if(ke.recoverable)this.trace(ve);else {var Te=new Error(ve);throw Te.hash=ke,Te}},parse:function(ve){var ke=this,Te=[0],Je=[null],l=[],rt=this.table,u="",X3=0,Pt=0,We=0,i3=2,b3=1,Gt=l.slice.call(arguments,1),je=Object.create(this.lexer),g3={yy:{}};for(var K3 in this.yy)Object.prototype.hasOwnProperty.call(this.yy,K3)&&(g3.yy[K3]=this.yy[K3]);je.setInput(ve,g3.yy),g3.yy.lexer=je,g3.yy.parser=this,typeof je.yylloc>"u"&&(je.yylloc={});var E3=je.yylloc;l.push(E3);var dr=je.options&&je.options.ranges;typeof g3.yy.parseError=="function"?this.parseError=g3.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pr(h3){Te.length=Te.length-2*h3,Je.length=Je.length-h3,l.length=l.length-h3;}for(var yt=function(){var h3;return h3=je.lex()||b3,typeof h3!="number"&&(h3=ke.symbols_[h3]||h3),h3},Le,o2,A3,m3,Sa,Kn,Bt={},qr,q3,Ss,Qr;;){if(A3=Te[Te.length-1],this.defaultActions[A3]?m3=this.defaultActions[A3]:((Le===null||typeof Le>"u")&&(Le=yt()),m3=rt[A3]&&rt[A3][Le]),typeof m3>"u"||!m3.length||!m3[0]){var br,gr="",Ts=function(h3){for(var qn=Te.length-1,As=0;;){if(i3.toString()in rt[h3])return As;if(h3===0||qn<2)return false;qn-=2,h3=Te[qn],++As;}};if(We)o2!==b3&&(br=Ts(A3));else {br=Ts(A3),Qr=[];for(qr in rt[A3])this.terminals_[qr]&&qr>i3&&Qr.push("'"+this.terminals_[qr]+"'");je.showPosition?gr="Parse error on line "+(X3+1)+`:
|
|
2859
|
-
`+je.showPosition()+`
|
|
2860
|
-
Expecting `+Qr.join(", ")+", got '"+(this.terminals_[Le]||Le)+"'":gr="Parse error on line "+(X3+1)+": Unexpected "+(Le==b3?"end of input":"'"+(this.terminals_[Le]||Le)+"'"),this.parseError(gr,{text:je.match,token:this.terminals_[Le]||Le,line:je.yylineno,loc:E3,expected:Qr,recoverable:br!==false});}if(We==3){if(Le===b3||o2===b3)throw new Error(gr||"Parsing halted while starting to recover from another error.");Pt=je.yyleng,u=je.yytext,X3=je.yylineno,E3=je.yylloc,Le=yt();}if(br===false)throw new Error(gr||"Parsing halted. No suitable error recovery rule available.");pr(br),o2=Le==i3?null:Le,Le=i3,A3=Te[Te.length-1],m3=rt[A3]&&rt[A3][i3],We=3;}if(m3[0]instanceof Array&&m3.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A3+", token: "+Le);switch(m3[0]){case 1:Te.push(Le),Je.push(je.yytext),l.push(je.yylloc),Te.push(m3[1]),Le=null,o2?(Le=o2,o2=null):(Pt=je.yyleng,u=je.yytext,X3=je.yylineno,E3=je.yylloc,We>0&&We--);break;case 2:if(q3=this.productions_[m3[1]][1],Bt.$=Je[Je.length-q3],Bt._$={first_line:l[l.length-(q3||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(q3||1)].first_column,last_column:l[l.length-1].last_column},dr&&(Bt._$.range=[l[l.length-(q3||1)].range[0],l[l.length-1].range[1]]),Kn=this.performAction.apply(Bt,[u,Pt,X3,g3.yy,m3[1],Je,l].concat(Gt)),typeof Kn<"u")return Kn;q3&&(Te=Te.slice(0,-1*q3*2),Je=Je.slice(0,-1*q3),l=l.slice(0,-1*q3)),Te.push(this.productions_[m3[1]][0]),Je.push(Bt.$),l.push(Bt._$),Ss=rt[Te[Te.length-2]][Te[Te.length-1]],Te.push(Ss);break;case 3:return true}}return true}},ra=["A","ABSENT","ABSOLUTE","ACCORDING","ACTION","ADA","ADD","ADMIN","AFTER","ALWAYS","ASC","ASSERTION","ASSIGNMENT","ATTRIBUTE","ATTRIBUTES","BASE64","BEFORE","BERNOULLI","BLOCKED","BOM","BREADTH","C","CASCADE","CATALOG","CATALOG_NAME","CHAIN","CHARACTERISTICS","CHARACTERS","CHARACTER_SET_CATALOG","CHARACTER_SET_NAME","CHARACTER_SET_SCHEMA","CLASS_ORIGIN","CLOSE","COBOL","COLLATION","COLLATION_CATALOG","COLLATION_NAME","COLLATION_SCHEMA","COLUMNS","COLUMN_NAME","COMMAND_FUNCTION","COMMAND_FUNCTION_CODE","COMMITTED","CONDITION_NUMBER","CONNECTION","CONNECTION_NAME","CONSTRAINTS","CONSTRAINT_CATALOG","CONSTRAINT_NAME","CONSTRAINT_SCHEMA","CONSTRUCTOR","CONTENT","CONTINUE","CONTROL","CURSOR_NAME","DATA","DATETIME_INTERVAL_CODE","DATETIME_INTERVAL_PRECISION","DB","DEFAULTS","DEFERRABLE","DEFERRED","DEFINED","DEFINER","DEGREE","DELETED","DEPTH","DERIVED","DESC","DESCRIPTOR","DIAGNOSTICS","DISPATCH","DOCUMENT","DOMAIN","DYNAMIC_FUNCTION","DYNAMIC_FUNCTION_CODE","EMPTY","ENCODING","ENFORCED","EXCLUDE","EXCLUDING","EXPRESSION","FILE","FINAL","FIRST","FLAG","FOLLOWING","FORTRAN","FOUND","FS","G","GENERAL","GENERATED","GO","GOTO","GRANTED","HEX","HIERARCHY","ID","IGNORE","IMMEDIATE","IMMEDIATELY","IMPLEMENTATION","INCLUDING","INCREMENT","INDENT","INITIALLY","INPUT","INSERTED","INSTANCE","INSTANTIABLE","INSTEAD","INTEGRITY","INVOKER","ISOLATION","K","KEY","KEY_MEMBER","KEY_TYPE","LAST","LENGTH","LEVEL","LIBRARY","LIMIT","LINK","LOCATION","LOCATOR","M","MAP","MAPPING","MATCHED","MAXVALUE","MESSAGE_LENGTH","MESSAGE_OCTET_LENGTH","MESSAGE_TEXT","MINVALUE","MORE","MUMPS","NAME","NAMES","NAMESPACE","NESTING","NEXT","NFC","NFD","NFKC","NFKD","NIL","NORMALIZED","NULLABLE","NULLS","NUMBER","OBJECT","OCTETS","OFF","OPEN","OPTION","OPTIONS","ORDER","ORDERING","ORDINALITY","OTHERS","OUTPUT","OVERRIDING","P","PAD","PARAMETER_MODE","PARAMETER_NAME","PARAMETER_ORDINAL_POSITION","PARAMETER_SPECIFIC_CATALOG","PARAMETER_SPECIFIC_NAME","PARAMETER_SPECIFIC_SCHEMA","PARTIAL","PASCAL","PASSING","PASSTHROUGH","PATH","PERMISSION","PLACING","PLI","PRECEDING","PRESERVE","PRIOR","PRIVILEGES","PUBLIC","READ","RECOVERY","RELATIVE","REPEATABLE","REQUIRING","RESPECT","RESTART","RESTORE","RESTRICT","RETURNED_CARDINALITY","RETURNED_LENGTH","RETURNED_OCTET_LENGTH","RETURNED_SQLSTATE","RETURNING","ROLE","ROUTINE","ROUTINE_CATALOG","ROUTINE_NAME","ROUTINE_SCHEMA","ROW_COUNT","SCALE","SCHEMA","SCHEMA_NAME","SCOPE_CATALOG","SCOPE_NAME","SCOPE_SCHEMA","SECTION","SECURITY","SELECTIVE","SELF","SEPARATOR","SEQUENCE","SERIALIZABLE","SERVER","SERVER_NAME","SESSION","SETS","SIMPLE","SIZE","SOURCE","SPACE","SPECIFIC_NAME","STANDALONE","STATE","STATEMENT","STRIP","STRUCTURE","STYLE","SUBCLASS_ORIGIN","T","TABLE_NAME","TEMPORARY","TIES","TOKEN","TOP_LEVEL_COUNT","TRANSACTION","TRANSACTIONS_COMMITTED","TRANSACTIONS_ROLLED_BACK","TRANSACTION_ACTIVE","TRANSFORM","TRANSFORMS","TRIGGER_CATALOG","TRIGGER_NAME","TRIGGER_SCHEMA","TYPE","UNBOUNDED","UNCOMMITTED","UNDER","UNLINK","UNNAMED","UNTYPED","URI","USAGE","USER_DEFINED_TYPE_CATALOG","USER_DEFINED_TYPE_CODE","USER_DEFINED_TYPE_NAME","USER_DEFINED_TYPE_SCHEMA","VALID","VERSION","VIEW","WHITESPACE","WORK","WRAPPER","WRITE","XMLDECLARATION","XMLSCHEMA","YES","ZONE"];Kr.parseError=function(V3,ve){if(!(ve.expected&&ve.expected.indexOf("'LITERAL'")>-1&&/[a-zA-Z_][a-zA-Z_0-9]*/.test(ve.token)&&ra.indexOf(ve.token)>-1))throw new SyntaxError(V3)};var na=(function(){var V3={EOF:1,parseError:function(ke,Te){if(this.yy.parser)this.yy.parser.parseError(ke,Te);else throw new Error(ke)},setInput:function(ve,ke){return this.yy=ke||this.yy||{},this._input=ve,this._more=this._backtrack=this.done=false,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var ve=this._input[0];this.yytext+=ve,this.yyleng++,this.offset++,this.match+=ve,this.matched+=ve;var ke=ve.match(/(?:\r\n?|\n).*/g);return ke?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ve},unput:function(ve){var ke=ve.length,Te=ve.split(/(?:\r\n?|\n)/g);this._input=ve+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ke),this.offset-=ke;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Te.length-1&&(this.yylineno-=Te.length-1);var Je=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Te?(Te.length===d.length?this.yylloc.first_column:0)+d[d.length-Te.length].length-Te[0].length:this.yylloc.first_column-ke},this.options.ranges&&(this.yylloc.range=[Je[0],Je[0]+this.yyleng-ke]),this.yyleng=this.yytext.length,this},more:function(){return this._more=true,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=true;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
2861
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(ve){this.unput(this.match.slice(ve));},pastInput:function(){var ve=this.matched.substr(0,this.matched.length-this.match.length);return (ve.length>20?"...":"")+ve.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ve=this.match;return ve.length<20&&(ve+=this._input.substr(0,20-ve.length)),(ve.substr(0,20)+(ve.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ve=this.pastInput(),ke=new Array(ve.length+1).join("-");return ve+this.upcomingInput()+`
|
|
2862
|
-
`+ke+"^"},test_match:function(ve,ke){var Te,d,Je;if(this.options.backtrack_lexer&&(Je={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Je.yylloc.range=this.yylloc.range.slice(0))),d=ve[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ve[0].length},this.yytext+=ve[0],this.match+=ve[0],this.matches=ve,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=false,this._backtrack=false,this._input=this._input.slice(ve[0].length),this.matched+=ve[0],Te=this.performAction.call(this,this.yy,this,ke,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=false),Te)return Te;if(this._backtrack){for(var l in Je)this[l]=Je[l];return false}return false},next:function(){if(this.done)return this.EOF;this._input||(this.done=true);var ve,ke,Te,d;this._more||(this.yytext="",this.match="");for(var Je=this._currentRules(),l=0;l<Je.length;l++)if(Te=this._input.match(this.rules[Je[l]]),Te&&(!ke||Te[0].length>ke[0].length)){if(ke=Te,d=l,this.options.backtrack_lexer){if(ve=this.test_match(Te,Je[l]),ve!==false)return ve;if(this._backtrack){ke=false;continue}else return false}else if(!this.options.flex)break}return ke?(ve=this.test_match(ke,Je[d]),ve!==false?ve:false):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
2863
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var ke=this.next();return ke||this.lex()},begin:function(ke){this.conditionStack.push(ke);},popState:function(){var ke=this.conditionStack.length-1;return ke>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ke){return ke=this.conditionStack.length-1-Math.abs(ke||0),ke>=0?this.conditionStack[ke]:"INITIAL"},pushState:function(ke){this.begin(ke);},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":true},performAction:function(ke,Te,d,Je){switch(d){case 0:return 294;case 1:return 335;case 2:return 457;case 3:return 332;case 4:return 5;case 5:return 5;case 6:return 329;case 7:return 329;case 8:return 141;case 9:return 141;case 10:return;case 11:break;case 12:return 349;case 13:return 352;case 14:return Te.yytext="VALUE",96;case 15:return Te.yytext="VALUE",198;case 16:return Te.yytext="ROW",198;case 17:return Te.yytext="COLUMN",198;case 18:return Te.yytext="MATRIX",198;case 19:return Te.yytext="INDEX",198;case 20:return Te.yytext="RECORDSET",198;case 21:return Te.yytext="TEXT",198;case 22:return Te.yytext="SELECT",198;case 23:return 558;case 24:return 418;case 25:return 439;case 26:return 553;case 27:return 319;case 28:return 297;case 29:return 297;case 30:return 173;case 31:return 437;case 32:return 179;case 33:return 249;case 34:return 175;case 35:return 216;case 36:return 320;case 37:return 81;case 38:return 455;case 39:return 268;case 40:return 441;case 41:return 391;case 42:return 318;case 43:return 552;case 44:return 475;case 45:return 363;case 46:return 480;case 47:return 364;case 48:return 348;case 49:return 128;case 50:return 121;case 51:return 348;case 52:return 121;case 53:return 348;case 54:return 121;case 55:return 348;case 56:return 546;case 57:return 336;case 58:return 415;case 59:return 299;case 60:return 403;case 61:return 139;case 62:return 8;case 63:return 269;case 64:return 199;case 65:return 199;case 66:return 472;case 67:return 402;case 68:return 509;case 69:return 478;case 70:return 301;case 71:return 262;case 72:return 315;case 73:return 295;case 74:return 215;case 75:return 256;case 76:return 292;case 77:return 293;case 78:return 293;case 79:return "CURSOR";case 80:return 442;case 81:return 323;case 82:return 324;case 83:return 325;case 84:return 488;case 85:return 378;case 86:return 372;case 87:return 281;case 88:return 268;case 89:return 443;case 90:return 194;case 91:return 433;case 92:return 487;case 93:return 144;case 94:return 339;case 95:return 426;case 96:return 343;case 97:return 347;case 98:return 178;case 99:return 546;case 100:return 546;case 101:return 331;case 102:return 18;case 103:return 328;case 104:return 275;case 105:return 266;case 106:return 105;case 107:return 407;case 108:return 192;case 109:return 247;case 110:return 296;case 111:return 346;case 112:return 639;case 113:return 511;case 114:return 252;case 115:return 304;case 116:return 258;case 117:return 259;case 118:return 165;case 119:return 391;case 120:return 377;case 121:return 365;case 122:return 109;case 123:return 202;case 124:return 223;case 125:return 244;case 126:return 554;case 127:return 373;case 128:return 229;case 129:return 177;case 130:return 326;case 131:return 207;case 132:return 479;case 133:return 243;case 134:return 6;case 135:return 267;case 136:return "LET";case 137:return 481;case 138:return 245;case 139:return 121;case 140:return 271;case 141:return 499;case 142:return 200;case 143:return 317;case 144:return 427;case 145:return 316;case 146:return 492;case 147:return 178;case 148:return 440;case 149:return 242;case 150:return 681;case 151:return 298;case 152:return 270;case 153:return 417;case 154:return 163;case 155:return 330;case 156:return 265;case 157:return 471;case 158:return 250;case 159:return 452;case 160:return 138;case 161:return 273;case 162:return 7;case 163:return 453;case 164:return 180;case 165:return 127;case 166:return 217;case 167:return 503;case 168:return 307;case 169:return 181;case 170:return 311;case 171:return 799;case 172:return 103;case 173:return 20;case 174:return 404;case 175:return 482;case 176:return 713;case 177:return 19;case 178:return 451;case 179:return 203;case 180:return "REDUCE";case 181:return 80;case 182:return 408;case 183:return 344;case 184:return 555;case 185:return 717;case 186:return 116;case 187:return 438;case 188:return 184;case 189:return 322;case 190:return 416;case 191:return 483;case 192:return 722;case 193:return 182;case 194:return 182;case 195:return 246;case 196:return 474;case 197:return 255;case 198:return 159;case 199:return 800;case 200:return 442;case 201:return 96;case 202:return 248;case 203:return 9;case 204:return 155;case 205:return 155;case 206:return 446;case 207:return 367;case 208:return 454;case 209:return "STRATEGY";case 210:return "STORE";case 211:return 313;case 212:return 314;case 213:return 388;case 214:return 388;case 215:return 502;case 216:return 392;case 217:return 392;case 218:return 201;case 219:return 342;case 220:return "TIMEOUT";case 221:return 157;case 222:return 204;case 223:return 473;case 224:return 473;case 225:return 547;case 226:return 327;case 227:return 491;case 228:return 171;case 229:return 196;case 230:return 108;case 231:return 368;case 232:return 445;case 233:return 251;case 234:return 158;case 235:return 379;case 236:return 143;case 237:return 447;case 238:return 341;case 239:return 137;case 240:return 477;case 241:return 76;case 242:return 473;case 243:return 4;case 244:return 140;case 245:return 124;case 246:return 146;case 247:return 188;case 248:return 350;case 249:return 189;case 250:return 142;case 251:return 147;case 252:return 359;case 253:return 356;case 254:return 358;case 255:return 355;case 256:return 353;case 257:return 351;case 258:return 352;case 259:return 151;case 260:return 150;case 261:return 148;case 262:return 354;case 263:return 357;case 264:return 149;case 265:return 133;case 266:return 357;case 267:return 82;case 268:return 83;case 269:return 461;case 270:return 463;case 271:return 333;case 272:return 466;case 273:return 545;case 274:return 131;case 275:return 125;case 276:return 78;case 277:return 366;case 278:return 161;case 279:return 798;case 280:return 152;case 281:return 190;case 282:return 145;case 283:return 132;case 284:return 345;case 285:return 154;case 286:return 14;case 287:return "INVALID"}},rules:[/^(?:``([^\`])+``)/i,/^(?:\[\?\])/i,/^(?:@\[)/i,/^(?:ARRAY\[)/i,/^(?:\[([^\]'])*?\])/i,/^(?:`([^\`'])*?`)/i,/^(?:N(['](\\.|[^']|\\')*?['])+)/i,/^(?:X(['](\\.|[^']|\\')*?['])+)/i,/^(?:(['](\\.|[^']|\\')*?['])+)/i,/^(?:(["](\\.|[^"]|\\")*?["])+)/i,/^(?:--(.*?)($|\r\n|\r|\n))/i,/^(?:\s+)/i,/^(?:\|\|)/i,/^(?:\|)/i,/^(?:VALUE\s+OF\s+SEARCH\b)/i,/^(?:VALUE\s+OF\s+SELECT\b)/i,/^(?:ROW\s+OF\s+SELECT\b)/i,/^(?:COLUMN\s+OF\s+SELECT\b)/i,/^(?:MATRIX\s+OF\s+SELECT\b)/i,/^(?:INDEX\s+OF\s+SELECT\b)/i,/^(?:RECORDSET\s+OF\s+SELECT\b)/i,/^(?:TEXT\s+OF\s+SELECT\b)/i,/^(?:SELECT\b)/i,/^(?:ABSOLUTE\b)/i,/^(?:ACTION\b)/i,/^(?:ADD\b)/i,/^(?:AFTER\b)/i,/^(?:AGGR\b)/i,/^(?:AGGREGATE\b)/i,/^(?:AGGREGATOR\b)/i,/^(?:ALL\b)/i,/^(?:ALTER\b)/i,/^(?:AND\b)/i,/^(?:ANTI\b)/i,/^(?:ANY\b)/i,/^(?:APPLY\b)/i,/^(?:ARRAY\b)/i,/^(?:AS\b)/i,/^(?:ASSERT\b)/i,/^(?:ASC\b)/i,/^(?:ATTACH\b)/i,/^(?:AUTO(_)?INCREMENT\b)/i,/^(?:AVG\b)/i,/^(?:BEFORE\b)/i,/^(?:BEGIN\b)/i,/^(?:BETWEEN\b)/i,/^(?:BREAK\b)/i,/^(?:NOT\s+BETWEEN\b)/i,/^(?:NOT\s+LIKE\b)/i,/^(?:BY\b)/i,/^(?:~~\*)/i,/^(?:!~~\*)/i,/^(?:~~)/i,/^(?:!~~)/i,/^(?:ILIKE\b)/i,/^(?:NOT\s+ILIKE\b)/i,/^(?:CALL\b)/i,/^(?:CASE\b)/i,/^(?:CASCADE\b)/i,/^(?:CAST\b)/i,/^(?:CHECK\b)/i,/^(?:CLASS\b)/i,/^(?:CLOSE\b)/i,/^(?:COLLATE\b)/i,/^(?:COLUMN\b)/i,/^(?:COLUMNS\b)/i,/^(?:COMMIT\b)/i,/^(?:CONSTRAINT\b)/i,/^(?:CONTENT\b)/i,/^(?:CONTINUE\b)/i,/^(?:CONVERT\b)/i,/^(?:CORRESPONDING\b)/i,/^(?:COUNT\b)/i,/^(?:CREATE\b)/i,/^(?:CROSS\b)/i,/^(?:CUBE\b)/i,/^(?:CURRENT_TIMESTAMP\b)/i,/^(?:CURRENT_DATE\b)/i,/^(?:CURDATE\b)/i,/^(?:CURSOR\b)/i,/^(?:DATABASE(S)?)/i,/^(?:DATEADD\b)/i,/^(?:DATEDIFF\b)/i,/^(?:TIMESTAMPDIFF\b)/i,/^(?:DECLARE\b)/i,/^(?:DEFAULT\b)/i,/^(?:DELETE\b)/i,/^(?:DELETED\b)/i,/^(?:DESC\b)/i,/^(?:DETACH\b)/i,/^(?:DISTINCT\b)/i,/^(?:DROP\b)/i,/^(?:ECHO\b)/i,/^(?:EDGE\b)/i,/^(?:END\b)/i,/^(?:ENUM\b)/i,/^(?:ELSE\b)/i,/^(?:ESCAPE\b)/i,/^(?:EXCEPT\b)/i,/^(?:EXEC\b)/i,/^(?:EXECUTE\b)/i,/^(?:EXISTS\b)/i,/^(?:EXPLAIN\b)/i,/^(?:FALSE\b)/i,/^(?:FETCH\b)/i,/^(?:FIRST\b)/i,/^(?:FOR\b)/i,/^(?:FOREIGN\b)/i,/^(?:FROM\b)/i,/^(?:FULL\b)/i,/^(?:FUNCTION\b)/i,/^(?:GLOB\b)/i,/^(?:GO\b)/i,/^(?:GRAPH\b)/i,/^(?:GROUP\b)/i,/^(?:GROUP_CONCAT\b)/i,/^(?:GROUPING\b)/i,/^(?:HAVING\b)/i,/^(?:IF\b)/i,/^(?:IDENTITY\b)/i,/^(?:IGNORE\b)/i,/^(?:IS\b)/i,/^(?:IN\b)/i,/^(?:INDEX\b)/i,/^(?:INDEXED\b)/i,/^(?:INNER\b)/i,/^(?:INSTEAD\b)/i,/^(?:INSERT\b)/i,/^(?:INSERTED\b)/i,/^(?:INTERSECT\b)/i,/^(?:INTERVAL\b)/i,/^(?:INTO\b)/i,/^(?:ITERATE\b)/i,/^(?:JOIN\b)/i,/^(?:KEY\b)/i,/^(?:LAST\b)/i,/^(?:LET\b)/i,/^(?:LEAVE\b)/i,/^(?:LEFT\b)/i,/^(?:LIKE\b)/i,/^(?:LIMIT\b)/i,/^(?:MATCHED\b)/i,/^(?:MATRIX\b)/i,/^(?:MAX\s*(?=\())/i,/^(?:MAX\s*(?=(,|\))))/i,/^(?:MIN\s*(?=\())/i,/^(?:MERGE\b)/i,/^(?:MINUS\b)/i,/^(?:MODIFY\b)/i,/^(?:NATURAL\b)/i,/^(?:NEXT\b)/i,/^(?:NEW\b)/i,/^(?:NOCASE\b)/i,/^(?:NO\b)/i,/^(?:NOT\b)/i,/^(?:NULL\b)/i,/^(?:NULLS\b)/i,/^(?:OFF\b)/i,/^(?:ON\b)/i,/^(?:ONLY\b)/i,/^(?:OF\b)/i,/^(?:OFFSET\b)/i,/^(?:OPEN\b)/i,/^(?:OPTION\b)/i,/^(?:OR\b)/i,/^(?:ORDER\b)/i,/^(?:OUTER\b)/i,/^(?:OUTPUT\b)/i,/^(?:OVER\b)/i,/^(?:PATH\b)/i,/^(?:PARTITION\b)/i,/^(?:PERCENT\b)/i,/^(?:PIVOT\b)/i,/^(?:PLAN\b)/i,/^(?:PRIMARY\b)/i,/^(?:PRINT\b)/i,/^(?:PRIOR\b)/i,/^(?:QUERY\b)/i,/^(?:READ\b)/i,/^(?:RECORDSET\b)/i,/^(?:REDUCE\b)/i,/^(?:RECURSIVE\b)/i,/^(?:REFERENCES\b)/i,/^(?:REGEXP\b)/i,/^(?:REINDEX\b)/i,/^(?:RELATIVE\b)/i,/^(?:REMOVE\b)/i,/^(?:RENAME\b)/i,/^(?:REPEAT\b)/i,/^(?:REPLACE\b)/i,/^(?:RESTRICT\b)/i,/^(?:REQUIRE\b)/i,/^(?:RESTORE\b)/i,/^(?:RETURN\b)/i,/^(?:RETURNS\b)/i,/^(?:RIGHT\b)/i,/^(?:ROLLBACK\b)/i,/^(?:ROLLUP\b)/i,/^(?:ROW\b)/i,/^(?:ROWS\b)/i,/^(?:SCHEMA(S)?)/i,/^(?:SEARCH\b)/i,/^(?:SEMI\b)/i,/^(?:SEPARATOR\b)/i,/^(?:SET\b)/i,/^(?:SETS\b)/i,/^(?:SHOW\b)/i,/^(?:SOME\b)/i,/^(?:SOURCE\b)/i,/^(?:STRATEGY\b)/i,/^(?:STORE\b)/i,/^(?:SUM\b)/i,/^(?:TOTAL\b)/i,/^(?:TABLE\b)/i,/^(?:TABLES\b)/i,/^(?:TARGET\b)/i,/^(?:TEMP\b)/i,/^(?:TEMPORARY\b)/i,/^(?:TEXTSTRING\b)/i,/^(?:THEN\b)/i,/^(?:TIMEOUT\b)/i,/^(?:TO\b)/i,/^(?:TOP\b)/i,/^(?:TRAN\b)/i,/^(?:TRANSACTION\b)/i,/^(?:TRIGGER\b)/i,/^(?:TRUE\b)/i,/^(?:TRUNCATE\b)/i,/^(?:UNION\b)/i,/^(?:UNIQUE\b)/i,/^(?:UNPIVOT\b)/i,/^(?:UPDATE\b)/i,/^(?:USE\b)/i,/^(?:USING\b)/i,/^(?:VALUE\b)/i,/^(?:VALUES\b)/i,/^(?:VERTEX\b)/i,/^(?:VIEW\b)/i,/^(?:WHEN\b)/i,/^(?:WHERE\b)/i,/^(?:WHILE\b)/i,/^(?:WITH\b)/i,/^(?:WORK\b)/i,/^(?:[0-9]*[a-zA-Z_]+[a-zA-Z_0-9]*)/i,/^(?:(\d+\.?\d*|\.\d+)([eE][+-]?\d+)?(?![a-zA-Z_0-9]))/i,/^(?:->)/i,/^(?:#)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\*)/i,/^(?:\/)/i,/^(?:%)/i,/^(?:!===)/i,/^(?:===)/i,/^(?:!==)/i,/^(?:==)/i,/^(?:>=)/i,/^(?:&)/i,/^(?:\|)/i,/^(?:<<)/i,/^(?:>>)/i,/^(?:>)/i,/^(?:<=)/i,/^(?:<>)/i,/^(?:<)/i,/^(?:=)/i,/^(?:!=)/i,/^(?:\()/i,/^(?:\))/i,/^(?:\{)/i,/^(?:\})/i,/^(?:\])/i,/^(?::-)/i,/^(?:\?-)/i,/^(?:\.\.)/i,/^(?:\.)/i,/^(?:,)/i,/^(?:::)/i,/^(?::)/i,/^(?:;)/i,/^(?:\$)/i,/^(?:\?)/i,/^(?:!)/i,/^(?:\^)/i,/^(?:~)/i,/^(?:@)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287],inclusive:true}}};return V3})();Kr.lexer=na;function Xn(){this.yy={};}return Xn.prototype=Kr,Kr.Parser=Xn,new Xn})();typeof R3<"u"&&'object'<"u"&&(exports.parser=nt,exports.Parser=nt.Parser,exports.parse=function(){return nt.parse.apply(nt,arguments)},exports.main=function(n){n[1]||(console.log("Usage: "+n[0]+" FILE"),process.exit(1));var t=R3().readFileSync(R3().normalize(n[1]),"utf8");return exports.parser.parse(t)},R3.main===module&&exports.main(process.argv.slice(1))),c.prettyflag=false,c.pretty=function(e,n){var t=c.prettyflag;c.prettyflag=!n;var r=c.parse(e).toString();return c.prettyflag=t,r};var B1=c.utils={};function Os(e){return "(y="+e+",y===y?y:undefined)"}var Er=Os;function Cs(e,n){return "(y="+e+',typeof y=="undefined"?undefined:'+n+")"}var Q3=Cs;function l2(){return true}var _e=B1.escapeq=function(e){return (""+e).replace(/["'\\\n\r\u2028\u2029]/g,function(n){switch(n){case '"':case "'":case "\\":return "\\"+n;case `
|
|
2864
|
-
`:return "\\n";case "\r":return "\\r";case "\u2028":return "\\u2028";case "\u2029":return "\\u2029"}})},Rs=B1.undoubleq=function(e){return e.replace(/(\')/g,"''")},ks=B1.doubleq=function(e){return e.replace(/(\'\')/g,"\\'")};B1.doubleqq=function(e){return e.replace(/'/g,"\\'")};var mr=function(e){return e[0]==="\uFEFF"&&(e=e.substr(1)),e};B1.global=(function(){return typeof self<"u"?self:typeof window<"u"?window:typeof commonjsGlobal<"u"?commonjsGlobal:Function("return this")()})();B1.isNativeFunction=function(e){return typeof e=="function"&&!!~e.toString().indexOf("[native code]")};B1.isWebWorker=(function(){try{var e=B1.global.importScripts;return B1.isNativeFunction(e)}catch{return false}})(),B1.isNode=(function(){try{return !(typeof process>"u"||!process.versions||!process.versions.node)}catch{return false}})(),B1.isBrowser=(function(){try{return B1.isNativeFunction(B1.global.location.reload)}catch{return false}})(),B1.isBrowserify=(function(){return B1.isBrowser&&typeof process<"u"&&process.browser})(),B1.isRequireJS=(function(){return B1.isBrowser&&typeof R3=="function"&&typeof R3.specified=="function"})(),B1.isMeteor=(function(){return typeof Meteor<"u"&&Meteor.release})(),B1.isMeteorClient=B1.isMeteorClient=(function(){return B1.isMeteor&&Meteor.isClient})(),B1.isMeteorServer=(function(){return B1.isMeteor&&Meteor.isServer})(),B1.isCordova=(function(){return typeof cordova=="object"})(),B1.isReactNative=(function(){var e=false;return e})(),B1.hasIndexedDB=(function(){return !!B1.global.indexedDB})(),B1.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"};let vr=B1.loadFile=function(e,n,t,r){var i;if(!(B1.isNode||B1.isMeteorServer)){if(B1.isCordova){B1.global.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(m){m.root.getFile(e,{create:false},function(E){E.file(function(p){var h=new FileReader;h.onloadend=function(g){t(mr(this.result));},h.readAsText(p);});});});return}if(typeof e=="string"){if(e.substr(0,1)==="#"&&typeof document<"u"){i=document.querySelector(e).textContent,t(i);return}zn(e,m=>t(mr(m)),r,n);return}if(e instanceof Event){var a=e.target.files,o=new FileReader;o.onload=function(m){var E=m.target.result;t(mr(E));},o.readAsText(a[0]);}zn(e,m=>t(mr(m)),r,n);}},Qn=typeof fetch<"u"?fetch:null;async function zn(e,n,t,r){return r?Zn(e,n,t):await Zn(e,n,t)}function Zn(e,n,t){return Qn(e).then(r=>r.text()).then(r=>{n(r);}).catch(r=>{if(t)return t(r);throw console.error(r),r})}B1.loadBinaryFile=function(e,n,t,r=i=>{throw i}){if(!(B1.isNode||B1.isMeteorServer))if(typeof e=="string"){var s=new XMLHttpRequest;s.open("GET",e,n),s.responseType="arraybuffer",s.onload=function(){for(var m=new Uint8Array(s.response),E=[],p=0;p<m.length;++p)E[p]=String.fromCharCode(m[p]);t(E.join(""));},s.onerror=r,s.send();}else if(e instanceof Event){var a=e.target.files,o=new FileReader;o.onload=function(m){var E=m.target.result;t(E);},o.onerror=r,o.readAsArrayBuffer(a[0]);}else e instanceof Blob&&t(e);};B1.removeFile=function(e,n){if(!B1.isNode)throw new Error("You can remove files only in Node.js and Apache Cordova")};B1.deleteFile=function(e,n){};B1.autoExtFilename=function(e,n,t){return t=t||{},typeof e!="string"||e.match(/^[A-Z]+:\/\/|\n|\..{2,6}$/i)||t.autoExt===0||t.autoExt===false?e:e+"."+n};B1.fileExists=function(e,n){if(!B1.isNode)throw new Error("You can use exists() only in Node.js or Apach Cordova")};B1.saveFile=function(e,n,t,r){var i=1;if(e===void 0)i=n,t&&(i=t(i));else if(!B1.isNode){var s={disableAutoBom:false};c.utils.extend(s,r);var a=new Blob([n],{type:"text/plain;charset=utf-8"});gt(a,e,s.disableAutoBom),t&&(i=t(i));}return i};var d3=B1.hash=function(e){for(var n=2166136261,t=e.length;t;)n^=e.charCodeAt(--t),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return n},Is=B1.arrayUnion=function(e,n){var t=n.slice(0);return e.forEach(function(r){t.indexOf(r)<0&&t.push(r);}),t},ws=B1.arrayDiff=function(e,n){return e.filter(function(t){return n.indexOf(t)<0})},_s=B1.arrayIntersect=function(e,n){var t=[];return e.forEach(function(r){var i=false;n.forEach(function(s){i=i||r===s;}),i&&t.push(r);}),t},xs=B1.arrayUnionDeep=function(e,n){var t=n.slice(0);return e.forEach(function(r){var i=false;t.forEach(function(s){i=i||pt(r,s);}),i||t.push(r);}),t},Ds=B1.arrayExceptDeep=function(e,n){var t=[];return e.forEach(function(r){var i=false;n.forEach(function(s){i=i||pt(r,s);}),i||t.push(r);}),t},Ls=B1.arrayIntersectDeep=function(e,n){var t=[];return e.forEach(function(r){var i=false;n.forEach(function(s){i=i||pt(r,s,true);}),i&&t.push(r);}),t},N3=B1.cloneDeep=function e(n){if(n===null||typeof n!="object")return n;if(n instanceof Date)return new Date(n);if(n instanceof String)return n.toString();if(n instanceof Number)return +n;var t=new n.constructor;for(var r in n)n.hasOwnProperty(r)&&(t[r]=e(n[r]));return t},pt=B1.deepEqual=function(e,n){if(e===n)return true;if(typeof e=="object"&&e!==null&&typeof n=="object"&&n!==null){if(Object.keys(e).length!==Object.keys(n).length)return false;for(var t in e)if(!pt(e[t],n[t]))return false;return true}return false},zr=B1.distinctArray=function(e){for(var n={},t=0,r=e.length;t<r;t++){var i;typeof e[t]=="object"?i=Object.keys(e[t]).sort().map(function(o){return o+"`"+e[t][o]}).join("`"):i=e[t],n[i]=e[t];}var s=[];for(var a in n)s.push(n[a]);return s},Be=B1.extend=function(n,t){n=n||{};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n},Vs=B1.getValueOf=function(e){return typeof e=="object"&&(e instanceof String||e instanceof Number)?e.valueOf():e},Ms=B1.flatArray=function(e){if(!e||e.length===0)return [];if(typeof e=="object"&&e instanceof c.Recordset)return e.data.map(function(t){return Vs(t[e.columns[0].columnid])});var n=Object.keys(e[0])[0];return n===void 0?[]:e.map(function(t){return t[n]})};B1.arrayOfArrays=function(e){return e.map(function(n){var t=[];for(var r in n)t.push(n[r]);return t})};Array.isArray||(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});B1.xlsnc=function(e){var n="";if(e>701){let r=((e-26)/676|0)-1;n=String.fromCharCode(65+r%26),e=e%676;}var t=String.fromCharCode(65+e%26);return e>=26&&(e=(e/26|0)-1,t=String.fromCharCode(65+e%26)+t,e>26&&(e=(e/26|0)-1,t=String.fromCharCode(65+e%26)+t)),n+t};B1.xlscn=function(e){var n=e.charCodeAt(0)-65;return e.length>1&&(n=(n+1)*26+e.charCodeAt(1)-65,e.length>2&&(n=(n+1)*26+e.charCodeAt(2)-65)),n};B1.domEmptyChildren=function(e){for(var n=e.childNodes.length;n--;)e.removeChild(e.lastChild);};var Zr={};B1.like=function(e,n,t=""){if(!Zr[e]){for(var r="^",i=0;i<e.length;){var s=e[i],a=i<e.length-1?e[i+1]:"";s===t?(r+="\\"+a,i++):s==="["&&a==="^"?(r+="[^",i++):s==="["||s==="]"?r+=s:s==="%"?r+="[\\s\\S]*":s==="_"?r+=".":"/.*+?|(){}".indexOf(s)>-1?r+="\\"+s:r+=s,i++;}r+="$",Zr[e]=RegExp(r,"i");}return (""+(n??"")).search(Zr[e])>-1};B1.glob=function(e,n){for(var t=0,r="^";t<n.length;){var i=n[t],s=t<n.length-1?n[t+1]:"";i==="["&&s==="^"?(r+="[^",t++):i==="["||i==="]"?r+=i:i==="*"?r+=".*":i==="?"?r+=".":"/.*+?|(){}".indexOf(i)>-1?r+="\\"+i:r+=i,t++;}return r+="$",(""+(e||"")).toUpperCase().search(RegExp(r.toUpperCase()))>-1},B1.findAlaSQLPath=function(){if(B1.isWebWorker)return "";if(B1.isMeteorClient)return "/packages/dist/";if(B1.isMeteorServer)return "assets/packages/dist/";if(B1.isNode)return Ns;if(B1.isBrowser)for(var e=document.getElementsByTagName("script"),n=0;n<e.length;n++){if(e[n].src.substr(-16).toLowerCase()==="alasql-worker.js")return e[n].src.substr(0,e[n].src.length-16);if(e[n].src.substr(-20).toLowerCase()==="alasql-worker.min.js")return e[n].src.substr(0,e[n].src.length-20);if(e[n].src.substr(-9).toLowerCase()==="alasql.js")return e[n].src.substr(0,e[n].src.length-9);if(e[n].src.substr(-13).toLowerCase()==="alasql.min.js")return e[n].src.substr(0,e[n].src.length-13)}return ""};var Jt=function(){var e=c.private.externalXlsxLib||B1.global.XLSX||null;if(e)return e;if(!e)throw new Error("Please include the xlsx.js library");return e},jt={str:/string|char$|text/i,int:/^int|int$/i,num:/float|double|real|^num|decimal|money/i,bool:/^bool/i,date:/^date|^time/i};B1.typeConverter=function(e,n){if(e==null)return e;if(!n)return c.options.csvStringToNumber&&typeof e=="string"&&e.length>0&&e==+e?+e:e;if(jt.str.test(n))return String(e);if(jt.int.test(n)){var t=parseInt(e,10);return isNaN(t)?e:t}if(jt.num.test(n)){var r=parseFloat(e);return isNaN(r)?e:r}return jt.bool.test(n)?typeof e=="string"?/^(true|1|yes)$/i.test(e):!!e:jt.date.test(n)?e instanceof Date?e:new Date(e):e},c.path=c.utils.findAlaSQLPath(),c.utils.uncomment=function(e){e=("__"+e+"__").split("");for(var n=false,t,r=false,i=false,s=0,a=e.length;s<a;s++){var o=e[s-1]!=="\\"||e[s-2]==="\\";n?e[s]===t&&o&&(n=false):r?e[s]==="*"&&e[s+1]==="/"?(e[s]=e[s+1]="",r=false,s++):e[s]="":i?((e[s+1]===`
|
|
2865
|
-
`||e[s+1]==="\r"||e.length-2===s)&&(i=false),e[s]=""):e[s]==='"'||e[s]==="'"?(n=true,t=e[s]):e[s]==="["&&e[s-1]!=="@"?(n=true,t="]"):e[s]==="-"&&e[s+1]==="-"?(e[s]="",i=true):e[s]==="/"&&e[s+1]==="*"&&(e[s]="",r=true);}return e=e.join("").slice(2,-2),e},c.parser=nt,c.parser.parseError=function(e,n){throw new Error("Have you used a reserved keyword without `escaping` it?\n"+e)},c.parse=function(e){return nt.parse(c.utils.uncomment(e))},c.engines={},c.databases={},c.databasenum=0,c.options={errorlog:false,valueof:true,dropifnotexists:false,datetimeformat:"sql",casesensitive:true,logtarget:"output",logprompt:true,progress:false,modifier:void 0,columnlookup:10,autovertex:true,usedbo:true,autocommit:true,cache:true,tsql:true,mysql:true,postgres:true,oracle:true,sqlite:true,orientdb:true,nocount:false,nan:false,excel:{cellDates:true},joinstar:"overwrite",loopbreak:1e5,maxCteIterations:1e3,dateAsString:true,csvStringToNumber:true},c.vars={},c.declares={},c.prompthistory=[],c.plugins={},c.from={},c.into={},c.fn={},c.aggr={},c.busy=0,c.MAXSQLCACHESIZE=1e4,c.DEFAULTDATABASEID="alasql",c.lastid=0,c.buffer={},c.private={externalXlsxLib:null},c.setXLSX=function(e){c.private.externalXlsxLib=e;},c.use=function(e){if(e||(e=c.DEFAULTDATABASEID),c.useid!==e)if(c.databases[e]!==void 0){c.useid=e;let n=c.databases[c.useid];c.tables=n.tables,n.resetSqlCache(),c.options.usedbo&&(c.databases.dbo=n);}else throw Error("Database does not exist: "+e)},c.autoval=function(e,n,t,r){var i=r?c.databases[r]:c.databases[c.useid];if(!i.tables[e])throw new Error("Tablename not found: "+e);if(!i.tables[e].identities[n])throw new Error("Colname not found: "+n);return t?i.tables[e].identities[n].value||null:i.tables[e].identities[n].value-i.tables[e].identities[n].step||null},c.exec=function(e,n,t,r){if(typeof n=="function"&&(r=t,t=n,n={}),delete c.error,n=n||{},c.options.errorlog)try{return c.dexec(c.useid,e,n,t,r)}catch(i){c.error=i,t&&t(null,c.error);}else return c.dexec(c.useid,e,n,t,r)};function $n(e){e&&c.options.cache&&e&&e.query&&e.query.data&&(e.query.data=[]);}c.dexec=function(e,n,t,r,i){var s=c.databases[e],a=d3(n+"|joinstar:"+c.options.joinstar);if(c.options.cache){let E=s.sqlCache[a];if(E&&s.dbversion===E.dbversion){var o=E(t,r);return $n(E),o}}let f=s.astCache[a];if(c.options.cache&&!f?(f=c.parse(n),f&&(s.astCache[a]=f)):f=c.parse(n),!!f.statements){if(f.statements.length===0)return 0;if(f.statements.length===1){if(f.statements[0].compile){var m=f.statements[0].compile(e,t);if(!m)return;m.sql=n,m.dbversion=s.dbversion,c.options.cache&&(s.sqlCacheSize>c.MAXSQLCACHESIZE&&s.resetSqlCache(),s.sqlCacheSize++,s.sqlCache[a]=m);var o=c.res=m(t,r,i);return $n(m),o}c.precompile(f.statements[0],c.useid,t);var o=c.res=f.statements[0].execute(e,t,r,i);return o}if(r){c.adrun(e,f,t,r,i);return}return c.drun(e,f,t,r,i)}},c.drun=function(e,n,t,r,i){var s=c.useid;s!==e&&c.use(e);for(var a=[],o=0,f=n.statements.length;o<f;o++)if(n.statements[o])if(n.statements[o].compile){var m=n.statements[o].compile(c.useid);a.push(c.res=m(t,null,i));}else c.precompile(n.statements[o],c.useid,t),a.push(c.res=n.statements[o].execute(c.useid,t));return s!==e&&c.use(s),r&&r(a),c.res=a,a},c.adrun=function(e,n,t,r,i){var s=0,a=n.statements.length;c.options.progress!==false&&c.options.progress(a,s++);var o=c.useid;o!==e&&c.use(e);var f=[];function m(E){E!==void 0&&f.push(E);var p=n.statements.shift();if(!p){o!==e&&c.use(o),r(f);return}if(p.compile){var h=p.compile(c.useid);h(t,m,i),c.options.progress!==false&&c.options.progress(a,s++);return}c.precompile(n.statements[0],c.useid,t),p.execute(c.useid,t,m),c.options.progress!==false&&c.options.progress(a,s++);}m();},c.compile=function(e,n){n=n||c.useid;let t=c.parse(e);if(t.statements.length!==1)throw new Error("Cannot compile, because number of statements in SQL is not equal to 1");var r=t.statements[0].compile(n);return r.promise=function(i){return new Promise(function(s,a){r(i,function(o,f){f?a(f):s(o);});})},r},B1.global.Promise||(B1.global.Promise=Promise);var ei=function(e,n,t,r){return new B1.global.Promise(function(i,s){c(e,n,function(a,o){o?s(o):(t&&r&&c.options.progress!==false&&c.options.progress(t,r),i(a));});})};const Us=(e,n)=>{var t=n.resolve([]);return e.forEach(r=>{t=t.then(i=>ei(r.sql,r.params,r.i,r.length).then(s=>[...i,s]));}),t};var Fs=function(e){if(!(e.length<1)){for(var n,t,r,i=[],s=0;s<e.length;s++){if(n=e[s],typeof n=="string"&&(n=[n]),!B1.isArray(n)||n.length<1||2<n.length)throw new Error("Error in .promise parameter");t=n[0],r=n[1]||void 0,i.push({sql:t,params:r,i:s,length:e.length});}return Us(i,B1.global.Promise)}};c.promise=function(e,n){if(typeof Promise>"u")throw new Error("Please include a Promise/A+ library");if(typeof e=="string")return ei(e,n);if(!B1.isArray(e)||e.length<1||typeof n<"u")throw new Error("Error in .promise parameters");return Fs(e)};var Ht=c.Database=function(e){var n=this;if(n===c)if(e){if(n=c.databases[e],c.databases[e]=n,!n)throw new Error(`Database ${e} not found`)}else n=c.databases.alasql,c.options.tsql&&(c.databases.tempdb=c.databases.alasql);return e||(e="db"+c.databasenum++),n.databaseid=e,c.databases[e]=n,n.dbversion=0,n.tables={},n.views={},n.triggers={},n.indices={},n.objects={},n.counter=0,n.resetSqlCache(),n};Ht.prototype.resetSqlCache=function(){this.sqlCache={},this.sqlCacheSize=0,this.astCache={};},Ht.prototype.exec=function(e,n,t){return c.dexec(this.databaseid,e,n,t)},Ht.prototype.autoval=function(e,n,t){return c.autoval(e,n,t,this.databaseid)},Ht.prototype.transaction=function(e){var n=new c.Transaction(this.databaseid),t=e(n);return t};class $r{transactionid=Date.now();committed=false;bank;constructor(n){this.databaseid=n,this.dbversion=c.databases[n].dbversion,this.bank=JSON.stringify(c.databases[n]);}commit(){this.committed=true,c.databases[this.databaseid].dbversion=Date.now(),delete this.bank;}rollback(){if(!this.committed)c.databases[this.databaseid]=JSON.parse(this.bank),delete this.bank;else throw new Error("Transaction already commited")}exec(n,t,r){return c.dexec(this.databaseid,n,t,r)}}$r.prototype.executeSQL=$r.prototype.exec,c.Transaction=$r;var Sr=c.Table=function(e){this.data=[],this.columns=[],this.xcolumns={},this.inddefs={},this.indices={},this.uniqs={},this.uniqdefs={},this.identities={},this.checks=[],this.checkfns=[],this.beforeinsert={},this.afterinsert={},this.insteadofinsert={},this.beforedelete={},this.afterdelete={},this.insteadofdelete={},this.beforeupdate={},this.afterupdate={},this.insteadofupdate={},Object.assign(this,e);};Sr.prototype.indexColumns=function(){var e=this;e.xcolumns={},e.columns.forEach(function(n){e.xcolumns[n.columnid]=n;});};class Ps{constructor(n){this.columns=[],this.xcolumns={},this.query=[],Object.assign(this,n);}}c.View=Ps;class ti{constructor(n){this.alasql=c,this.columns=[],this.xcolumns={},this.selectGroup=[],this.groupColumns={},Object.assign(this,n);}}class Gs{constructor(n){Object.assign(this,n);}}c.Recordset=Gs,c.Query=ti;class ys{constructor(n){Object.assign(this,n);}toString(){}toType(){}toJS(){}exec(){}compile(){}}var S={extend:Object.assign,casesensitive:c.options.casesensitive,Base:ys,compileParamValue:function(e,n,t,r,i,s){return function(a,o){var f=a[e];if(!Array.isArray(f)){var m=new Error(n+" requires an array for parameter "+e);if(o)return o(null,m);throw m}var E="__p"+e+"_"+Date.now(),p=c.databases[r||"alasql"];p.tables[E]=new c.Table({tableid:E}),p.tables[E].data=f;try{var h=i[s];i[s]=new S.Table({tableid:E,databaseid:p.databaseid});var g=i.compile(r);i[s]=h;var A=g(a,o);if(t){var v=p.tables[E].data;f.length=0,Array.prototype.push.apply(f,v);}return A}catch(T){if(o)return o(null,T);throw T}finally{delete p.tables[E];}}}};nt.yy=c.yy=S,S.Statements=class{constructor(n){Object.assign(this,n);}toString(){return this.statements.map(n=>n.toString()).join("; ")}compile(n){const t=this.statements.map(r=>r.compile(n));return t.length===1?t[0]:(r,i)=>{const s=t.map(a=>a(r));return i&&i(s),s}}},S.Search=class{constructor(n){Object.assign(this,n);}toString(){let n="SEARCH ";return this.selectors&&(n+=this.selectors.toString()),this.from&&(n+="FROM "+this.from.toString()),n}toJS(n){return `this.queriesfn[${this.queriesidx-1}](this.params,null,${n})`}compile(n){var t=n,r=(i,s)=>{var a;return this.#e(t,i,function(o){a=ii(r.query,o),s&&(a=s(a));}),a};return r.query={},r}#e(n,t,r){var i,s={},a,o=N3(this.selectors);function f(A,v,T){var O,b,C1,C=A[v],a1=c.options.loopbreak||1e5;if(C.selid){if(C.selid==="PATH"){for(var r1=[{node:T,stack:[]}],j={},i1=c.databases[c.useid].objects;r1.length>0;){var k1=r1.shift(),W1=k1.node,z1=k1.stack,C1=f(C.args,0,W1);if(C1.length>0){if(v+1+1>A.length)return z1;var R=[];return z1&&z1.length>0&&z1.forEach(function(Oe){R=R.concat(f(A,v+1,Oe));}),R}else {if(typeof j[W1.$id]<"u")continue;j[W1.$id]=true,W1.$out&&W1.$out.length>0&&W1.$out.forEach(function(Oe){var Pe=i1[Oe],He=z1.concat(Pe);He.push(i1[Pe.$out[0]]),r1.push({node:i1[Pe.$out[0]],stack:He});});}}return []}if(C.selid==="NOT"){var b=f(C.args,0,T);return b.length>0?[]:v+1+1>A.length?[T]:f(A,v+1,T)}else if(C.selid==="DISTINCT"){var b;if(typeof C.args>"u"||C.args.length===0?b=zr(T):b=f(C.args,0,T),b.length===0)return [];var Me=zr(b);return v+1+1>A.length?Me:f(A,v+1,Me)}else if(C.selid==="AND"){var Me=true;return C.args.forEach(function(Oe){Me=Me&&f(Oe,0,T).length>0;}),Me?v+1+1>A.length?[T]:f(A,v+1,T):[]}else if(C.selid==="OR"){var Me=false;return C.args.forEach(function(Oe){Me=Me||f(Oe,0,T).length>0;}),Me?v+1+1>A.length?[T]:f(A,v+1,T):[]}else if(C.selid==="ALL"){var b=f(C.args[0],0,T);return b.length===0?[]:v+1+1>A.length?b:f(A,v+1,b)}else if(C.selid==="ANY"){var b=f(C.args[0],0,T);return b.length===0?[]:v+1+1>A.length?[b[0]]:f(A,v+1,[b[0]])}else if(C.selid==="UNIONALL"){var b=[];return C.args.forEach(function(Oe){b=b.concat(f(Oe,0,T));}),b.length===0?[]:v+1+1>A.length?b:f(A,v+1,b)}else if(C.selid==="UNION"){var b=[];C.args.forEach(function(Oe){b=b.concat(f(Oe,0,T));});var b=zr(b);return b.length===0?[]:v+1+1>A.length?b:f(A,v+1,b)}else if(C.selid==="IF"){var b=f(C.args,0,T);return b.length===0?[]:v+1+1>A.length?[T]:f(A,v+1,T)}else if(C.selid==="REPEAT"){var M1,ee,_1=C.args[0].value;C.args[1]?ee=C.args[1].value:ee=_1,C.args[2]&&(M1=C.args[2].variable);var X1=[];if(_1===0&&(v+1+1>A.length?X1=[T]:(M1&&(c.vars[M1]=0),X1=X1.concat(f(A,v+1,T)))),ee>0)for(var Se=[{value:T,lvl:1}],Ie=0;Se.length>0;){var b=Se[0];if(Se.shift(),b.lvl<=ee){M1&&(c.vars[M1]=b.lvl);var Xe=f(C.sels,0,b.value);Xe.forEach(function(Oe){Se.push({value:Oe,lvl:b.lvl+1});}),b.lvl>=_1&&(v+1+1>A.length?X1=X1.concat(Xe):Xe.forEach(function(Oe){X1=X1.concat(f(A,v+1,Oe));}));}if(Ie++,Ie>a1)throw new Error("Infinite loop brake. Number of iterations = "+Ie)}return X1}else if(C.selid==="OF"){if(v+1+1>A.length)return [T];var Ve=[];return Object.keys(T).forEach(function(Re){c.vars[C.args[0].variable]=Re,Ve=Ve.concat(f(A,v+1,T[Re]));}),Ve}else if(C.selid==="TO"){var we=c.vars[C.args[0]],Ge=[];if(we!==void 0?Ge=we.slice(0):Ge=[],Ge.push(T),v+1+1>A.length)return [T];c.vars[C.args[0]]=Ge;var Ve=f(A,v+1,T);return c.vars[C.args[0]]=we,Ve}else if(C.selid==="ARRAY"){var b=f(C.args,0,T);if(b.length>0)O=b;else return [];return v+1+1>A.length?[O]:f(A,v+1,O)}else if(C.selid==="SUM"){var b=f(C.args,0,T);if(b.length>0)var O=b.reduce(function(Pe,He){return Pe+He},0);else return [];return v+1+1>A.length?[O]:f(A,v+1,O)}else if(C.selid==="AVG"){if(b=f(C.args,0,T),b.length>0)O=b.reduce(function(Re,Oe){return Re+Oe},0)/b.length;else return [];return v+1+1>A.length?[O]:f(A,v+1,O)}else if(C.selid==="COUNT"){if(b=f(C.args,0,T),b.length>0)O=b.length;else return [];return v+1+1>A.length?[O]:f(A,v+1,O)}else if(C.selid==="FIRST"){if(b=f(C.args,0,T),b.length>0)O=b[0];else return [];return v+1+1>A.length?[O]:f(A,v+1,O)}else if(C.selid==="LAST"){if(b=f(C.args,0,T),b.length>0)O=b[b.length-1];else return [];return v+1+1>A.length?[O]:f(A,v+1,O)}else if(C.selid==="MIN"){if(b=f(C.args,0,T),b.length===0)return [];var O=b.reduce(function(Oe,Pe){return Math.min(Oe,Pe)},1/0);return v+1+1>A.length?[O]:f(A,v+1,O)}else if(C.selid==="MAX"){var b=f(C.args,0,T);if(b.length===0)return [];var O=b.reduce(function(Pe,He){return Math.max(Pe,He)},-1/0);return v+1+1>A.length?[O]:f(A,v+1,O)}else if(C.selid==="PLUS"){var X1=[],Se=f(C.args,0,T).slice();v+1+1>A.length?X1=X1.concat(Se):Se.forEach(function(He){X1=X1.concat(f(A,v+1,He));});for(var Ie=0;Se.length>0;){var b=Se.shift();if(b=f(C.args,0,b),Se=Se.concat(b),v+1+1>A.length?X1=X1.concat(b):b.forEach(function(o3){var v3=f(A,v+1,o3);X1=X1.concat(v3);}),Ie++,Ie>a1)throw new Error("Infinite loop brake. Number of iterations = "+Ie)}return X1}else if(C.selid==="STAR"){var X1=[];X1=f(A,v+1,T);var Se=f(C.args,0,T).slice();v+1+1>A.length?X1=X1.concat(Se):Se.forEach(function(He){X1=X1.concat(f(A,v+1,He));});for(var Ie=0;Se.length>0;){var b=Se[0];if(Se.shift(),b=f(C.args,0,b),Se=Se.concat(b),v+1+1<=A.length&&b.forEach(function(o3){X1=X1.concat(f(A,v+1,o3));}),Ie++,Ie>a1)throw new Error("Infinite loop brake. Number of iterations = "+Ie)}return X1}else if(C.selid==="QUESTION"){var X1=[];X1=X1.concat(f(A,v+1,T));var b=f(C.args,0,T);return v+1+1<=A.length&&b.forEach(function(Pe){X1=X1.concat(f(A,v+1,Pe));}),X1}else if(C.selid==="WITH"){var b=f(C.args,0,T);if(b.length===0)return [];var C1={status:1,values:b};}else {if(C.selid==="ROOT")return v+1+1>A.length?[T]:f(A,v+1,a);throw new Error("Wrong selector "+C.selid)}}else if(C.srchid)var C1=c.srch[C.srchid.toUpperCase()](T,C.args,s,t);else throw new Error("Selector not found");typeof C1>"u"&&(C1={status:1,values:[T]});var Me=[];if(C1.status===1){var Ze=C1.values;if(v+1+1>A.length)Me=Ze;else for(var Ie=0;Ie<C1.values.length;Ie++)Me=Me.concat(f(A,v+1,Ze[Ie]));}return Me}if(o!==void 0&&o.length>0&&(o&&o[0]&&o[0].srchid==="PROP"&&o[0].args&&o[0].args[0]&&(o[0].args[0].toUpperCase()==="XML"?(s.mode="XML",o.shift()):o[0].args[0].toUpperCase()==="HTML"?(s.mode="HTML",o.shift()):o[0].args[0].toUpperCase()==="JSON"&&(s.mode="JSON",o.shift())),o.length>0&&o[0].srchid==="VALUE"&&(s.value=true,o.shift())),this.from instanceof S.Column){var m=this.from.databaseid||n;a=c.databases[m].tables[this.from.columnid].data;}else if(this.from instanceof S.FuncValue&&c.from[this.from.funcid.toUpperCase()]){var E=this.from.args.map(function(A){var v=A.toJS(),T=new Function("params,alasql","var y;return "+v).bind(this);return T(t,c)});a=c.from[this.from.funcid.toUpperCase()].apply(this,E);}else if(typeof this.from>"u")a=c.databases[n].objects;else {var p=new Function("params,alasql","var y;return "+this.from.toJS());a=p(t,c),typeof Mongo=="object"&&typeof Mongo.Collection!="object"&&a instanceof Mongo.Collection&&(a=a.find().fetch());}if(o!==void 0&&o.length>0?i=f(o,0,a):i=a,this.into)if(this.into instanceof S.ParamValue)typeof this.into.param=="string"?t[this.into.param]=i:t[this.into.param]=i,r&&(i=r(i));else if(this.into instanceof S.VarValue)c.vars[this.into.variable]=i,r&&(i=r(i));else {var h,g;typeof this.into.args[0]<"u"&&(h=new Function("params,alasql","var y;return "+this.into.args[0].toJS())(t,c)),typeof this.into.args[1]<"u"&&(g=new Function("params,alasql","var y;return "+this.into.args[1].toJS())(t,c)),i=c.into[this.into.funcid.toUpperCase()](h,g,i,[],r);}else s.value&&i.length>0&&(i=i[0]),r&&(i=r(i));return i}},c.srch={PROP(e,n,t){if(t.mode==="XML"){const r=e.children.filter(i=>i.name.toUpperCase()===n[0].toUpperCase());return {status:r.length?1:-1,values:r}}else return typeof e!="object"||e===null||typeof n!="object"||typeof e[n[0]]>"u"?{status:-1,values:[]}:{status:1,values:[e[n[0]]]}},APROP(e,n){return typeof e!="object"||e===null||typeof n!="object"||typeof e[n[0]]>"u"?{status:1,values:[void 0]}:{status:1,values:[e[n[0]]]}},EQ(e,n,t,r){var i=n[0].toJS("x",""),s=new Function("x,alasql,params","return "+i);return e===s(e,c,r)?{status:1,values:[e]}:{status:-1,values:[]}},LIKE(e,n,t,r){var i=n[0].toJS("x",""),s=new Function("x,alasql,params","return "+i);return e.toUpperCase().match(new RegExp("^"+s(e,c,r).toUpperCase().replace(/%/g,".*").replace(/\?|_/g,".")+"$"),"g")?{status:1,values:[e]}:{status:-1,values:[]}},ATTR(e,n,t){if(t.mode==="XML")return typeof n>"u"?{status:1,values:[e.attributes]}:typeof e=="object"&&typeof e.attributes=="object"&&typeof e.attributes[n[0]]<"u"?{status:1,values:[e.attributes[n[0]]]}:{status:-1,values:[]};throw new Error("ATTR is not using in usual mode")},CONTENT(e,n,t){if(t.mode!=="XML")throw new Error("ATTR is not using in usual mode");return {status:1,values:[e.content]}},SHARP(e,n){const t=c.databases[c.useid].objects[n[0]];return e!==void 0&&e===t?{status:1,values:[e]}:{status:-1,values:[]}},PARENT(){return console.error("PARENT not implemented",arguments),{status:-1,values:[]}},CHILD(e,n,t){return typeof e=="object"?Array.isArray(e)?{status:1,values:e}:t.mode==="XML"?{status:1,values:Object.keys(e.children).map(function(r){return e.children[r]})}:{status:1,values:Object.keys(e).map(function(r){return e[r]})}:{status:1,values:[]}},KEYS(e){return typeof e=="object"&&e!==null?{status:1,values:Object.keys(e)}:{status:1,values:[]}},WHERE(e,n,t,r){var i=n[0].toJS("x",""),s=new Function("x,alasql,params","return "+i);return s(e,c,r)?{status:1,values:[e]}:{status:-1,values:[]}},NAME(e,n){return e.name===n[0]?{status:1,values:[e]}:{status:-1,values:[]}},CLASS(e,n){return e.$class==n?{status:1,values:[e]}:{status:-1,values:[]}},VERTEX(e){return e.$node==="VERTEX"?{status:1,values:[e]}:{status:-1,values:[]}},INSTANCEOF(e,n){return e instanceof c.fn[n[0]]?{status:1,values:[e]}:{status:-1,values:[]}},EDGE(e){return e.$node==="EDGE"?{status:1,values:[e]}:{status:-1,values:[]}},EX(e,n,t,r){var i=n[0].toJS("x",""),s=new Function("x,alasql,params","return "+i);return {status:1,values:[s(e,c,r)]}},RETURN(e,n,t,r){var i={};return n&&n.length>0&&n.forEach(function(s){var a=s.toJS("x",""),o=new Function("x,alasql,params","return "+a);typeof s.as>"u"&&(s.as=s.toString()),i[s.as]=o(e,c,r);}),{status:1,values:[i]}},REF(e){return {status:1,values:[c.databases[c.useid].objects[e]]}},OUT(e){if(e.$out&&e.$out.length>0){var n=e.$out.map(function(t){return c.databases[c.useid].objects[t]});return {status:1,values:n}}else return {status:-1,values:[]}},OUTOUT(e){if(e.$out&&e.$out.length>0){var n=[];return e.$out.forEach(function(t){var r=c.databases[c.useid].objects[t];r&&r.$out&&r.$out.length>0&&r.$out.forEach(function(i){n=n.concat(c.databases[c.useid].objects[i]);});}),{status:1,values:n}}else return {status:-1,values:[]}},IN(e){if(e.$in&&e.$in.length>0){var n=e.$in.map(function(t){return c.databases[c.useid].objects[t]});return {status:1,values:n}}else return {status:-1,values:[]}},ININ(e){if(e.$in&&e.$in.length>0){var n=[];return e.$in.forEach(function(t){var r=c.databases[c.useid].objects[t];r&&r.$in&&r.$in.length>0&&r.$in.forEach(function(i){n=n.concat(c.databases[c.useid].objects[i]);});}),{status:1,values:n}}else return {status:-1,values:[]}},AS(e,n){return c.vars[n[0]]=e,{status:1,values:[e]}},AT(e,n){var t=c.vars[n[0]];return {status:1,values:[t]}},CLONEDEEP(e){var n=N3(e);return {status:1,values:[n]}},SET(e,n,t,r){var i=n.map(function(a){return a.method==="@"?`alasql.vars[${JSON.stringify(a.variable)}]=`+a.expression.toJS("x",""):a.method==="$"?`params[${JSON.stringify(a.variable)}]=`+a.expression.toJS("x",""):`x[${JSON.stringify(a.column.columnid)}]=`+a.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",i);return s(e,r,c),{status:1,values:[e]}},ROW(e,n,t,r){var i="var y;return [";i+=n.map(o=>o.toJS("x","")).join(","),i+="]";var s=new Function("x,params,alasql",i),a=s(e,r,c);return {status:1,values:[a]}},D3(e){return e.$node!=="VERTEX"&&e.$node==="EDGE"&&(e.source=e.$in[0],e.target=e.$out[0]),{status:1,values:[e]}},ORDERBY(e,n){var t=e.sort(Bs(n));return {status:1,values:t}}};var Bs=function(e){if(e){if(typeof e?.[0]?.expression=="function"){var n=e[0].expression;return function(i,s){var a=n(i),o=n(s);return a>o?1:a===o?0:-1}}var t="",r="";return e.forEach(function(i){var s="";if(i.expression instanceof S.NumValue&&(i.expression=self.columns[i.expression.value-1]),i.expression instanceof S.Column){var a=i.expression.columnid;c.options.valueof&&(s=".valueOf()"),i.nocase&&(s+=".toUpperCase()"),a==="_"?(t+="if(a"+s+(i.direction==="ASC"?">":"<")+"b"+s+")return 1;",t+="if(a"+s+"==b"+s+"){"):t+=`if (
|
|
2866
|
-
(a[${JSON.stringify(a)}]||'')${s}
|
|
2867
|
-
${i.direction==="ASC"?">":"<"}
|
|
2868
|
-
(b[${JSON.stringify(a)}]||'')${s}
|
|
2869
|
-
) return 1;
|
|
2870
|
-
|
|
2871
|
-
if(
|
|
2872
|
-
(a[${JSON.stringify(a)}]||'')${s}
|
|
2873
|
-
==
|
|
2874
|
-
(b[${JSON.stringify(a)}]||'')${s}
|
|
2875
|
-
){
|
|
2876
|
-
`;}else s=".valueOf()",i.nocase&&(s+=".toUpperCase()"),t+=`
|
|
2877
|
-
if (
|
|
2878
|
-
(${i.toJS("a","")} || '')${s}
|
|
2879
|
-
${i.direction==="ASC"?">":"<"}
|
|
2880
|
-
(${i.toJS("b","")} || '')${s}
|
|
2881
|
-
) return 1;
|
|
2882
|
-
|
|
2883
|
-
if (
|
|
2884
|
-
(${i.toJS("a","")} || '')${s} ==
|
|
2885
|
-
(${i.toJS("b","")} || '')${s}
|
|
2886
|
-
) {`;r+="}";}),t+="return 0;",t+=r+"return -1",new Function("a,b",t)}};function Js(e,n,t,r,i){e.sourceslen=e.sources.length;let s=e.sourceslen;e.query=e,e.A=r,e.B=i,e.cb=t,e.oldscope=n,e.subqueryCache={},e.queriesfn&&(e.sourceslen+=e.queriesfn.length,s+=e.queriesfn.length,e.queriesdata=[],e.queriesfn.forEach(function(o,f){o.query.params=e.params,ri([],-f-1,e);})),e.scope=n?N3(n):{};let a;if(e.sources.forEach(function(o,f){o.query=e;var m=o.datafn(e,e.params,ri,f,c);typeof m<"u"&&((e.intofn||e.intoallfn)&&Array.isArray(m)&&!e.preserveArrayResult&&(m=m.length),a=m),o.queriesdata=e.queriesdata;}),e.sources.length==0||s===0)try{a=ni(e);}catch(o){if(t)return t(null,o);throw o}return a}function ri(e,n,t){if(n>=0){let r=t.sources[n];r.data=e,typeof r.data=="function"&&(r.getfn=r.data,r.dontcache=r.getfn.dontcache,["OUTER","RIGHT","ANTI"].includes(r.joinmode)&&(r.dontcache=false),r.data={});}else t.queriesdata[-n-1]=Ms(e);if(t.sourceslen--,!(t.sourceslen>0))return ni(t)}function ni(e){var n=e.scope,t;Ys(e),e.data=[],e.xgroups={},e.groups=[];var r=0;if(bt(e,n,r),e.groupfn){if(e.data=[],e.groups.length===0&&e.allgroups.length===0){var i={};e.selectGroup.length>0&&e.selectGroup.forEach(function(i1){i1.aggregatorid=="COUNT"||i1.aggregatorid=="SUM"||i1.aggregatorid=="TOTAL"?i[i1.nick]=0:i[i1.nick]=void 0;}),e.groups=[i];}if(e.aggrKeys.length>0){var s="";e.aggrKeys.forEach(function(i1){var k1="";i1.args&&i1.args.length>1?k1=Array(i1.args.length).fill("undefined").join(",")+",":k1="undefined,",s+=`
|
|
2887
|
-
g[${JSON.stringify(i1.nick)}] = alasql.aggr[${JSON.stringify(i1.funcid)}](${k1}g[${JSON.stringify(i1.nick)}],3); `;});var a=new Function("g,params,alasql","var y;"+s);}for(var o=0,f=e.groups.length;o<f;o++){var i=e.groups[o];if(a&&a(i,e.params,c),!e.havingfn||e.havingfn(i,e.params,c)){var m=e.selectgfn(i,e.params,c);for(const k1 in e.groupColumns)if(e.groupColumns[k1]!==k1&&m[e.groupColumns[k1]]&&!e.groupColumns[e.groupColumns[k1]]){var E=e.groupColumns[k1],p=false;for(const W1 in e.groupColumns)if(W1!==k1&&e.groupColumns[W1]===E&&m[W1]){p=true;break}p||delete m[e.groupColumns[k1]];}e.data.push(m);}}}if(Hs(e),e.unionallfn){var h,g;if(e.corresponding)e.unionallfn.query&&!e.unionallfn.query.modifier&&(e.unionallfn.query.modifier=void 0),h=e.unionallfn(e.params);else {e.unionallfn.query&&!e.unionallfn.query.modifier&&(e.unionallfn.query.modifier="RECORDSET"),g=e.unionallfn(e.params),h=[],f=g.data.length;for(var o=0;o<f;o++){var A={};if(e.columns.length){t=Math.min(e.columns.length,g.columns.length);for(var v=0;v<t;v++)A[e.columns[v].columnid]=g.data[o][g.columns[v].columnid];}else {t=g.columns.length;for(var v=0;v<t;v++)A[g.columns[v].columnid]=g.data[o][g.columns[v].columnid];}h.push(A);}}e.data=e.data.concat(h);}else if(e.unionfn){if(e.corresponding)e.unionfn.query&&!e.unionfn.query.modifier&&(e.unionfn.query.modifier="ARRAY"),h=e.unionfn(e.params);else {e.unionfn.query&&!e.unionfn.query.modifier&&(e.unionfn.query.modifier="RECORDSET"),g=e.unionfn(e.params),h=[],f=g.data.length;for(var o=0;o<f;o++){if(A={},e.columns.length){t=Math.min(e.columns.length,g.columns.length);for(var v=0;v<t;v++)A[e.columns[v].columnid]=g.data[o][g.columns[v].columnid];}else {t=g.columns.length;for(var v=0;v<t;v++)A[g.columns[v].columnid]=g.data[o][g.columns[v].columnid];}h.push(A);}}e.data=xs(e.data,h);}else if(e.exceptfn){if(e.corresponding){e.exceptfn.query&&!e.exceptfn.query.modifier&&(e.exceptfn.query.modifier="ARRAY");var h=e.exceptfn(e.params);}else {e.exceptfn.query&&!e.exceptfn.query.modifier&&(e.exceptfn.query.modifier="RECORDSET");for(var g=e.exceptfn(e.params),h=[],o=0,f=g.data.length;o<f;o++){for(var A={},v=Math.min(e.columns.length,g.columns.length)-1;0<=v;v--)A[e.columns[v].columnid]=g.data[o][g.columns[v].columnid];h.push(A);}}e.data=Ds(e.data,h);}else if(e.intersectfn){if(e.corresponding)e.intersectfn.query&&!e.intersectfn.query.modifier&&(e.intersectfn.query.modifier=void 0),h=e.intersectfn(e.params);else for(e.intersectfn.query&&!e.intersectfn.query.modifier&&(e.intersectfn.query.modifier="RECORDSET"),g=e.intersectfn(e.params),h=[],f=g.data.length,o=0;o<f;o++){for(A={},t=Math.min(e.columns.length,g.columns.length),v=0;v<t;v++)A[e.columns[v].columnid]=g.data[o][g.columns[v].columnid];h.push(A);}e.data=Ls(e.data,h);}if(e.orderfn&&e.orderColumns&&(e.unionallfn||e.unionfn||e.exceptfn||e.intersectfn))for(o=0,f=e.data.length;o<f;o++)for(var T=0;T<e.orderColumns.length;T++){var O=e.orderColumns[T],b="$$$"+T,A=e.data[o];O instanceof S.Column&&A[O.columnid]!==void 0?A[b]=A[O.columnid]:(A[b]=void 0),o===0&&e.removeKeys.indexOf(b)===-1&&e.removeKeys.push(b);}if(e.orderfn){if(e.explain)var C1=Date.now();e.data=e.data.sort(e.orderfn),e.explain&&e.explaination.push({explid:e.explid++,description:"QUERY BY",ms:Date.now()-C1});}if(js(e),typeof angular<"u"&&e.removeKeys.push("$$hashKey"),e.removeKeys.length>0){var C=e.removeKeys;if(t=C.length,t>0)for(f=e.data.length,o=0;o<f;o++)for(v=0;v<t;v++)delete e.data[o][C[v]];e.columns.length>0&&(e.columns=e.columns.filter(function(i1){var k1=false;return C.forEach(function(W1){i1.columnid==W1&&(k1=true);}),!k1}));}if(typeof e.removeLikeKeys<"u"&&e.removeLikeKeys.length>0){for(var a1=e.removeLikeKeys,o=0,f=e.data.length;o<f;o++){A=e.data[o];for(var r1 in A)for(v=0;v<e.removeLikeKeys.length;v++)c.utils.like(e.removeLikeKeys[v],r1)&&delete A[r1];}e.columns.length>0&&(e.columns=e.columns.filter(function(i1){var k1=false;return a1.forEach(function(W1){c.utils.like(W1,i1.columnid)&&(k1=true);}),!k1}));}if(e.pivotfn&&e.pivotfn(),e.unpivotfn&&e.unpivotfn(),e.intoallfn){var j=e.intoallfn(e.columns,e.cb,e.params,e.alasql);return j}if(e.intofn){for(f=e.data.length,o=0;o<f;o++)e.intofn(e.data[o],o,e.params,e.alasql);return e.cb&&e.cb(e.data.length,e.A,e.B),e.data.length}return j=e.data,e.cb&&(j=e.cb(e.data,e.A,e.B)),j}function js(e){if(e.limit){var n=0;e.offset&&(n=e.offset|0||0,n=n<0?0:n);var t;e.percent?t=(e.data.length*e.limit/100|0)+n:t=(e.limit|0)+n,e.data=e.data.slice(n,t);}}function Hs(e){if(e.distinct){for(var n={},t=Object.keys(e.data[0]||[]),r=0,i=e.data.length;r<i;r++){var s=t.map(function(o){var f=e.data[r][o];return typeof f=="object"?JSON.stringify(f):f}).join("`");n[s]=e.data[r];}e.data=[];for(var a in n)e.data.push(n[a]);}}var Ys=function(e){for(var n=0,t=e.sources.length;n<t;n++){var r=e.sources[n];delete r.ix;var i,s,a,o,f,m,E,p;if(n>0&&r.optimization=="ix"&&r.onleftfn&&r.onrightfn){if(r.databaseid&&c.databases[r.databaseid].tables[r.tableid]&&(c.databases[r.databaseid].tables[r.tableid].indices||(e.database.tables[r.tableid].indices={}),f=c.databases[r.databaseid].tables[r.tableid].indices[d3(r.onrightfns+"`"+r.srcwherefns)],!c.databases[r.databaseid].tables[r.tableid].dirty&&f&&(r.ix=f)),!r.ix){for(r.ix={},i={},s=0,a=r.data.length;(o=r.data[s])||r.getfn&&(o=r.getfn(s))||s<a;){if(r.getfn&&!r.dontcache&&(r.data[s]=o),i[r.alias||r.tableid]=o,r.srcwherefn(i,e.params,c)){var m=r.onrightfn(i,e.params,c),E=r.ix[m];E||(E=r.ix[m]=[]),E.push(o);}s++;}r.databaseid&&c.databases[r.databaseid].tables[r.tableid]&&(c.databases[r.databaseid].tables[r.tableid].indices[d3(r.onrightfns+"`"+r.srcwherefns)]=r.ix);}}else if(r.wxleftfn){if(c.databases[r.databaseid].engineid||(f=c.databases[r.databaseid].tables[r.tableid].indices[d3(r.wxleftfns+"`")]),!c.databases[r.databaseid].tables[r.tableid].dirty&&f)r.ix=f,r.data=r.ix[r.wxrightfn(null,e.params,c)];else {for(r.ix={},i={},s=0,a=r.data.length;(o=r.data[s])||r.getfn&&(o=r.getfn(s))||s<a;)r.getfn&&!r.dontcache&&(r.data[s]=o),i[r.alias||r.tableid]=r.data[s],m=r.wxleftfn(i,e.params,c),E=r.ix[m],E||(E=r.ix[m]=[]),E.push(r.data[s]),s++;c.databases[r.databaseid].engineid||(c.databases[r.databaseid].tables[r.tableid].indices[d3(r.wxleftfns+"`")]=r.ix);}r.srcwherefns&&(r.data?(i={},r.data=r.data.filter(function(h){return i[r.alias]=h,r.srcwherefn(i,e.params,c)})):r.data=[]);}else if(r.srcwherefns&&!r.dontcache)if(r.data){for(i={},r.data=r.data.filter(function(h){return i[r.alias]=h,r.srcwherefn(i,e.params,c)}),i={},s=0,a=r.data.length,p=[];(o=r.data[s])||r.getfn&&(o=r.getfn(s))||s<a;)r.getfn&&!r.dontcache&&(r.data[s]=o),i[r.alias]=o,r.srcwherefn(i,e.params,c)&&p.push(o),s++;r.data=p;}else r.data=[];}};function bt(e,n,t){if(t>=e.sources.length)e.wherefn(n,e.params,c)&&(e.groupfn?e.groupfn(n,e.params,c):e.data.push(e.selectfn(n,e.params,c)));else if(e.sources[t].applyselect){var r=e.sources[t];r.applyselect(e.params,function(f){if(f.length>0)for(var m=0;m<f.length;m++)n[r.alias]=f[m],bt(e,n,t+1);else r.applymode=="OUTER"&&(n[r.alias]={},bt(e,n,t+1));},n);}else {let f=e.sources[t],m=e.sources[t+1],E=f.alias||f.tableid,p=false,h=f.data,g=false;(!f.getfn||f.getfn&&!f.dontcache)&&f.joinmode!="RIGHT"&&f.joinmode!="OUTER"&&f.joinmode!="ANTI"&&f.optimization=="ix"&&(h=f.ix[f.onleftfn(n,e.params,c)]||[],g=true);let A=0;if(typeof h>"u")throw new Error("Data source number "+t+" in undefined");let v=h.length,T;for(;(T=h[A])||!g&&f.getfn&&(T=f.getfn(A))||A<v;){!g&&f.getfn&&!f.dontcache&&(h[A]=T),n[E]=T;var i=!f.onleftfn;if(!i){var s=f.onleftfn(n,e.params,c),a=f.onrightfn(n,e.params,c);(s instanceof String||s instanceof Number)&&(s=s.valueOf()),(a instanceof String||a instanceof Number)&&(a=s.valueOf()),i=s==a;}i&&f.onmiddlefn(n,e.params,c)&&(f.joinmode!="SEMI"&&f.joinmode!="ANTI"&&bt(e,n,t+1),f.joinmode!="LEFT"&&f.joinmode!="INNER"&&(T._rightjoin=true),p=true),A++;}if((f.joinmode=="LEFT"||f.joinmode=="OUTER"||f.joinmode=="SEMI")&&!p&&(n[E]={},bt(e,n,t+1)),t==0)for(var o=t+1;o<e.sources.length;o++){if(m.joinmode=="OUTER"||m.joinmode=="RIGHT"||m.joinmode=="ANTI"){n[f.alias]={};let O=0,b=m.data.length,C1;for(;(C1=m.data[O])||m.getfn&&(C1=m.getfn(O))||O<b;)m.getfn&&!m.dontcache&&(m.data[O]=C1),C1._rightjoin?delete C1._rightjoin:(n[m.alias]=C1,bt(e,n,o+1)),O++;}f=e.sources[o],m=e.sources[o+1];}n[E]=void 0;}}S.Select=class{constructor(n){Object.assign(this,n);}toString(){var n;return n="",this.explain&&(n+="EXPLAIN "),n+="SELECT ",this.modifier&&(n+=this.modifier+" "),this.distinct&&(n+="DISTINCT "),this.top&&(n+="TOP "+this.top.value+" ",this.percent&&(n+="PERCENT ")),n+=this.columns.map(function(t){var r;return r=t.toString(),typeof t.as<"u"&&(r+=" AS "+t.as),r}).join(", "),this.from&&(n+=" FROM "+this.from.map(function(t){var r;return r=t.toString(),t.as&&(r+=" AS "+t.as),r}).join(",")),this.joins&&(n+=this.joins.map(function(t){var r;if(r=" ",t.joinmode&&(r+=t.joinmode+" "),t.table)r+="JOIN "+t.table.toString();else if(t.select)r+="JOIN ("+t.select.toString()+")";else if(t instanceof c.yy.Apply)r+=t.toString();else throw new Error("Wrong type in JOIN mode");return t.as&&(r+=" AS "+t.as),t.using&&(r+=" USING "+t.using.toString()),t.on&&(r+=" ON "+t.on.toString()),r}).join("")),this.where&&(n+=" WHERE "+this.where.toString()),this.group&&this.group.length>0&&(n+=" GROUP BY "+this.group.map(function(t){return t.toString()}).join(", ")),this.having&&(n+=" HAVING "+this.having.toString()),this.order&&this.order.length>0&&(n+=" ORDER BY "+this.order.map(function(t){return t.toString()}).join(", ")),this.limit&&(n+=" LIMIT "+this.limit.value),this.offset&&(n+=" OFFSET "+this.offset.value),this.union&&(n+=" UNION "+(this.corresponding?"CORRESPONDING ":"")+this.union.toString()),this.unionall&&(n+=" UNION ALL "+(this.corresponding?"CORRESPONDING ":"")+this.unionall.toString()),this.except&&(n+=" EXCEPT "+(this.corresponding?"CORRESPONDING ":"")+this.except.toString()),this.intersect&&(n+=" INTERSECT "+(this.corresponding?"CORRESPONDING ":"")+this.intersect.toString()),n}toJS(n){var t="alasql.utils.flatArray(this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+n+"))[0]";return t}compile(n,t){var r=c.databases[n],i=new ti;if(i.removeKeys=[],i.aggrKeys=[],i.explain=this.explain,i.explaination=[],i.explid=1,i.modifier=this.modifier,i.database=r,this.compileWhereExists(i),this.compileQueries(i),i.defcols=this.compileDefCols(i,n),i.fromfn=this.compileFrom(i),this.joins&&this.compileJoins(i),i.rownums=[],i.grouprownums=[],i.windowaggrs=[],this.into instanceof S.FuncValue&&this.into.funcid.toUpperCase()==="OBJECT"&&(i.intoObject=true),this.compileSelectGroup0(i),this.group||i.selectGroup.length>0?i.selectgfns=this.compileSelectGroup1(i):i.selectfns=this.compileSelect1(i,t),this.compileRemoveColumns(i),this.where&&this.compileWhereJoins(i),i.wherefn=this.compileWhere(i),(this.group||i.selectGroup.length>0)&&(i.groupfn=this.compileGroup(i)),this.having&&(i.havingfn=this.compileHaving(i)),this.order&&(i.orderfn=this.compileOrder(i,t),i.orderColumns=this.orderColumns),this.group||i.selectGroup.length>0?i.selectgfn=this.compileSelectGroup2(i):i.selectfn=this.compileSelect2(i,t),i.distinct=this.distinct,this.pivot&&(i.pivotfn=this.compilePivot(i)),this.unpivot&&(i.pivotfn=this.compileUnpivot(i)),this.top?i.limit=this.top.value:this.limit&&(i.limit=this.limit.value,this.offset&&(i.offset=this.offset.value)),i.percent=this.percent,i.corresponding=this.corresponding,this.union?(i.unionfn=this.union.compile(n),!i.orderfn&&this.union.order&&(i.orderfn=this.union.compileOrder(i,t))):this.unionall?(i.unionallfn=this.unionall.compile(n),!i.orderfn&&this.unionall.order&&(i.orderfn=this.unionall.compileOrder(i,t))):this.except?(i.exceptfn=this.except.compile(n),!i.orderfn&&this.except.order&&(i.orderfn=this.except.compileOrder(i,t))):this.intersect&&(i.intersectfn=this.intersect.compile(n),!i.orderfn&&this.intersect.order&&(i.orderfn=this.intersect.compileOrder(i,t))),this.into){if(this.into instanceof S.Table)if(c.options.autocommit&&c.databases[this.into.databaseid||n].engineid)i.intoallfns=`return alasql
|
|
2888
|
-
.engines[${JSON.stringify(c.databases[this.into.databaseid||n].engineid)}]
|
|
2889
|
-
.intoTable(
|
|
2890
|
-
${JSON.stringify(this.into.databaseid||n)},
|
|
2891
|
-
${JSON.stringify(this.into.tableid)},
|
|
2892
|
-
this.data,
|
|
2893
|
-
columns,
|
|
2894
|
-
cb
|
|
2895
|
-
);`;else {var s=this.into.databaseid||n,a=this.into.tableid;i.intofns=`
|
|
2896
|
-
var db = alasql.databases[${JSON.stringify(s)}];
|
|
2897
|
-
var table = db.tables[${JSON.stringify(a)}];
|
|
2898
|
-
var converted = {};
|
|
2899
|
-
for (var key in r) {
|
|
2900
|
-
var colDef = table.xcolumns && table.xcolumns[key];
|
|
2901
|
-
converted[key] = alasql.utils.typeConverter(r[key], colDef ? colDef.dbtypeid : null);
|
|
2902
|
-
}
|
|
2903
|
-
table.data.push(converted);
|
|
2904
|
-
`;}else if(this.into instanceof S.VarValue)i.intoallfns=`
|
|
2905
|
-
alasql.vars[${JSON.stringify(this.into.variable)}]=this.data;
|
|
2906
|
-
res=this.data.length;
|
|
2907
|
-
if(cb) res = cb(res);
|
|
2908
|
-
return res;
|
|
2909
|
-
`;else if(this.into instanceof S.FuncValue){var o=this.into.funcid.toUpperCase(),f="return alasql.into["+JSON.stringify(o)+"](";this.into.args&&this.into.args.length>0?(f+=this.into.args[0].toJS()+",",this.into.args.length>1?f+=this.into.args[1].toJS()+",":f+="undefined,"):f+="undefined, undefined,",i.intoallfns=f+"this.data,columns,cb)",o==="OBJECT"&&(i.preserveArrayResult=true);}else this.into instanceof S.ParamValue&&(typeof this.into.param=="string"?i.intoallfns=`
|
|
2910
|
-
if(!params[${JSON.stringify(this.into.param)}]) params[${JSON.stringify(this.into.param)}]=[];
|
|
2911
|
-
params[${JSON.stringify(this.into.param)}]=this.data;
|
|
2912
|
-
res=this.data.length;
|
|
2913
|
-
if(cb) res = cb(res);
|
|
2914
|
-
return res;
|
|
2915
|
-
`:i.intofns=`params[${JSON.stringify(this.into.param)}].push(r)`);i.intofns?i.intofn=new Function("r,i,params,alasql","var y;"+i.intofns):i.intoallfns&&(i.intoallfn=new Function("columns,cb,params,alasql","var y;"+i.intoallfns));}var m=function(E,p,h){i.params=E;var g=Js(i,h,function(A,v){if(v){if(p)return p(null,v);throw v}if(i.rownums.length>0)for(var T=0,O=A.length;T<O;T++)for(var b=0,C1=i.rownums.length;b<C1;b++)A[T][i.rownums[b]]=T+1;if(i.grouprownums&&i.grouprownums.length>0)for(var b=0,C1=i.grouprownums.length;b<C1;b++){var C=i.grouprownums[b],a1;if(C.partitionColumns&&C.partitionColumns.length>0)a1=C.partitionColumns;else {var r1=Object.keys(A[0]||{});a1=[r1[0]];}for(var j=null,i1=0,T=0,O=A.length;T<O;T++){var k1=a1.map(function(Me){return A[T][Me]}).join("|");T===0||k1!==j?i1=1:i1++,A[T][C.as]=i1,j=k1;}}if(i.windowaggrs&&i.windowaggrs.length>0)for(var b=0,C1=i.windowaggrs.length;b<C1;b++){for(var C=i.windowaggrs[b],W1={},T=0,O=A.length;T<O;T++){var z1=C.partitionColumns&&C.partitionColumns.length>0?C.partitionColumns.map(function(Ze){return A[T][Ze]}).join("|"):"__all__";W1[z1]||(W1[z1]=[]),W1[z1].push(T);}for(var z1 in W1){var R=W1[z1],M1=[],ee=C.expression&&C.expression.columnid;if(C.aggregatorid!=="COUNT"||ee&&ee!=="*")for(var _1=0;_1<R.length;_1++){var X1=A[R[_1]][ee];X1!=null&&M1.push(X1);}var Se;switch(C.aggregatorid){case "COUNT":Se=ee&&ee!=="*"?M1.length:R.length;break;case "SUM":Se=M1.reduce(function(Me,Ze){return Me+Ze},0);break;case "AVG":Se=M1.length>0?M1.reduce(function(Me,Ze){return Me+Ze},0)/M1.length:null;break;case "MAX":Se=M1.length>0?Math.max.apply(null,M1):null;break;case "MIN":Se=M1.length>0?Math.min.apply(null,M1):null;break}for(var _1=0;_1<R.length;_1++)A[R[_1]][C.as]=Se;}}var Ie=ii(i,A);return p&&p(Ie),Ie});return g};return m.query=i,m}execute(n,t,r){return this.compile(n)(t,r)}compileWhereExists(n){this.exists&&(n.existsfn=this.exists.map(function(t){var r=t.compile(n.database.databaseid);return r.query.modifier="RECORDSET",r}));}compileQueries(n){if(!this.queries)return;const t=(r,i)=>{if(!r.from)return false;const s=new Set;r.from.forEach(o=>{o.tableid&&s.add(o.tableid),o.as&&s.add(o.as);});const a=o=>{if(!o)return false;if(o instanceof S.Column&&o.tableid&&!s.has(o.tableid))return true;for(let f of Object.keys(o))if(o[f]&&typeof o[f]=="object"&&a(o[f]))return true;return false};return a(r.where)||a(r.columns)};n.queriesfn=this.queries.map(function(r,i){var s=r.compile(n.database.databaseid);return s.query.modifier="RECORDSET",s.query.isCorrelated=t(r),r.queries&&r.queries.length>0&&(s.query.queriesfn=r.queries.map(function(a){var o=a.compile(n.database.databaseid);return o.query.modifier="RECORDSET",o})),s});}};function ii(e,n){if(typeof n>"u"||typeof n=="number"||typeof n=="string"||typeof n=="boolean")return n;var t=e.modifier||c.options.modifier,r=e.columns;if(e.dirtyColumns&&n.length>0){for(var i={},s=Math.min(n.length,c.options.columnlookup||10)-1;0<=s;s--)for(var a in n[s])i[a]=true;var o=Object.keys(i).map(function(E){return {columnid:E}});if(!r||r.length===0)r=o;else {var f={};r.forEach(function(E){f[E.columnid]=true;}),o.forEach(function(E){f[E.columnid]||r.push(E);});}}else if(typeof r>"u"||r.length===0)if(n.length>0){for(var i={},s=Math.min(n.length,c.options.columnlookup||10)-1;0<=s;s--)for(var a in n[s])i[a]=true;r=Object.keys(i).map(function(p){return {columnid:p}});}else r=[],e&&e.sources&&e.sources.forEach(E=>{E&&E.columns&&Array.isArray(E.columns)&&(r=r.concat(E.columns));});switch(t){case "VALUE":if(n.length===0)return;const E=r&&r.length>0?r[0].columnid:Object.keys(n[0])[0];return n[0][E];case "ROW":return n.length===0?void 0:Object.values(n[0]);case "COLUMN":if(n.length===0)return [];let p;r&&r.length>0?p=r[0].columnid:p=Object.keys(n[0])[0];let h=[];for(var s=0,m=n.length;s<m;s++)h.push(n[s][p]);return e.distinct&&(h=c.utils.distinctArray(h)),h;case "MATRIX":return n.length===0?void 0:n.map(T=>r.map(O=>T[O.columnid]));case "INDEX":if(n.length===0)return;const g=r&&r.length>0?r[0].columnid:Object.keys(n[0])[0],A=r&&r.length>1?r[1].columnid:Object.keys(n[0])[1];return n.reduce((T,O)=>({...T,[O[g]]:O[A]}),{});case "RECORDSET":return new c.Recordset({columns:r,data:n});case "TEXTSTRING":if(n.length===0)return;const v=r&&r.length>0?r[0].columnid:Object.keys(n[0])[0];return n.map(T=>T[v]).join(`
|
|
2916
|
-
`);case "ALASQL_DETAILS":return {data:n,columns:r,length:n.length}}return n}S.ExistsValue=class{constructor(n){Object.assign(this,n);}toString(){return "EXISTS("+this.value.toString()+")"}toType(){return "boolean"}toJS(n,t,r){return `!!this.existsfn[${this.existsidx}](params, null, ${n}).data.length`}},c.precompile=function(e,n,t){if(e){if(e.params=t,e.view&&e.select&&e.queries){e.select.queries=e.queries;return}e.queries&&(e.queriesfn=e.queries.map(function(r){var i=r.compile(n||e.database.databaseid);return i.query.modifier="RECORDSET",i})),e.exists&&(e.existsfn=e.exists.map(function(r){var i=r.compile(n||e.database.databaseid);return i.query.modifier="RECORDSET",i}));}},S.Select.prototype.compileFrom=function(e){const n=this;e.sources=[],e.aliases={},n.from&&(n.from.forEach(t=>{const r=t.as||t.tableid;if(t instanceof S.Table)e.aliases[r]={tableid:t.tableid,databaseid:t.databaseid||e.database.databaseid,type:"table"};else if(t instanceof S.Select)e.aliases[r]={type:"subquery"};else if(t instanceof S.Search)e.aliases[r]={type:"subsearch"};else if(t instanceof S.ParamValue)e.aliases[r]={type:"paramvalue"};else if(t instanceof S.FuncValue)e.aliases[r]={type:"funcvalue"};else if(t instanceof S.VarValue)e.aliases[r]={type:"varvalue"};else if(t instanceof S.FromData)e.aliases[r]={type:"fromdata"};else if(t instanceof S.Json)e.aliases[r]={type:"json"};else if(t.inserted)e.aliases[r]={type:"inserted"};else throw new Error("Wrong table at FROM");const i={alias:r,databaseid:t.databaseid||e.database.databaseid,tableid:t.tableid,joinmode:"INNER",onmiddlefn:l2,srcwherefns:"",srcwherefn:l2};if(t instanceof S.Table)i.columns=c.databases[i.databaseid].tables[i.tableid].columns,c.options.autocommit&&c.databases[i.databaseid].engineid&&!c.databases[i.databaseid].tables[i.tableid].view?i.datafn=(s,a,o,f,m)=>m.engines[m.databases[i.databaseid].engineid].fromTable(i.databaseid,i.tableid,o,f,s):c.databases[i.databaseid].tables[i.tableid].view?i.datafn=(s,a,o,f,m)=>{let E=m.databases[i.databaseid].tables[i.tableid];!E.select&&E.viewSelect&&(E.select=E.viewSelect.compile(E.viewDatabaseid));let p=E.select(a);return o&&(p=o(p,f,s)),p}:i.datafn=(s,a,o,f,m)=>{let E=m.databases[i.databaseid].tables[i.tableid].data;return o&&(E=o(E,f,s)),E};else if(t instanceof S.Select)i.subquery=t.compile(e.database.databaseid),typeof i.subquery.query.modifier>"u"&&(i.subquery.query.modifier="RECORDSET"),i.columns=i.subquery.query.columns,i.datafn=(s,a,o,f,m)=>{let E;return i.subquery(s.params,p=>{E=p.data,o&&(E=o(E,f,s));}),E};else if(t instanceof S.Search)i.subsearch=t,i.columns=[],i.datafn=(s,a,o,f,m)=>{let E;return i.subsearch.execute(s.database.databaseid,s.params,p=>{E=p,o&&(E=o(E,f,s));}),E};else if(t instanceof S.ParamValue){let s=`var res = alasql.prepareFromData(params['${t.param}']`;t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",i.datafn=new Function("query,params,cb,idx,alasql",s);}else if(t.inserted){let s="var res = alasql.prepareFromData(alasql.inserted";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",i.datafn=new Function("query,params,cb,idx,alasql",s);}else if(t instanceof S.Json){let s="var res = alasql.prepareFromData("+t.toJS();t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",i.datafn=new Function("query,params,cb,idx,alasql",s);}else if(t instanceof S.VarValue){let s=`var res = alasql.prepareFromData(alasql.vars['${t.variable}']`;t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",i.datafn=new Function("query,params,cb,idx,alasql",s);}else if(t instanceof S.FuncValue){let s="var res=alasql.from["+JSON.stringify(t.funcid.toUpperCase())+"](";t.args&&t.args.length>0?(t.args[0]?s+=t.args[0].toJS("query.oldscope")+",":s+="null,",t.args[1]?s+=t.args[1].toJS("query.oldscope")+",":s+="null,"):s+="null,null,",s+="cb,idx,query); return res",i.datafn=new Function("query,params,cb,idx,alasql",s);}else if(t instanceof S.FromData)i.datafn=(s,a,o,f,m)=>{let E=t.data;return o&&(E=o(E,f,s)),E};else throw new Error("Wrong table at FROM");e.sources.push(i);}),e.defaultTableid=e.sources[0].alias);},c.prepareFromData=function(e,n){let t=e;if(typeof e=="string")t=e.split(/\r?\n/),n&&(t=t.map(r=>[r]));else if(n)t=e.map(r=>[r]);else if(typeof e=="object"&&!Array.isArray(e))if(typeof Mongo<"u"&&typeof Mongo.Collection<"u"&&e instanceof Mongo.Collection)t=e.find().fetch();else {t=[];for(const r in e)e.hasOwnProperty(r)&&t.push([r,e[r]]);}return t},S.Select.prototype.compileJoins=function(e){this.joins.forEach(t=>{let r,i,s;if(t.joinmode==="CROSS"&&(t.joinmode="INNER"),t instanceof S.Apply){s={alias:t.as,applymode:t.applymode,onmiddlefn:l2,srcwherefns:"",srcwherefn:l2,columns:[]},s.applyselect=t.select.compile(e.database.databaseid),s.columns=s.applyselect.query.columns,s.datafn=function(o,f,m,E,p){let h;return m&&(h=m(h,E,o)),h},e.sources.push(s);return}if(t.table){if(r=t.table,s={alias:t.as||r.tableid,databaseid:r.databaseid||e.database.databaseid,tableid:r.tableid,joinmode:t.joinmode,onmiddlefn:l2,srcwherefns:"",srcwherefn:l2,columns:[]},!c.databases[s.databaseid].tables[s.tableid])throw new Error("Table '"+s.tableid+"' is not exists in database '"+s.databaseid+"'");s.columns=c.databases[s.databaseid].tables[s.tableid].columns,c.options.autocommit&&c.databases[s.databaseid].engineid?s.datafn=function(o,f,m,E,p){return p.engines[p.databases[s.databaseid].engineid].fromTable(s.databaseid,s.tableid,m,E,o)}:c.databases[s.databaseid].tables[s.tableid].view?s.datafn=function(o,f,m,E,p){let h=p.databases[s.databaseid].tables[s.tableid].select(f);return m&&(h=m(h,E,o)),h}:s.datafn=function(o,f,m,E,p){let h=p.databases[s.databaseid].tables[s.tableid].data;return m&&(h=m(h,E,o)),h},e.aliases[s.alias]={tableid:r.tableid,databaseid:r.databaseid||e.database.databaseid};}else if(t.select)r=t.select,s={alias:t.as,joinmode:t.joinmode,onmiddlefn:l2,srcwherefns:"",srcwherefn:l2,columns:[]},s.subquery=r.compile(e.database.databaseid),typeof s.subquery.query.modifier>"u"&&(s.subquery.query.modifier="RECORDSET"),s.columns=s.subquery.query.columns,s.datafn=function(o,f,m,E,p){s.data=s.subquery(o.params,null,m,E).data;let h=s.data;return m&&(h=m(h,E,o)),h},e.aliases[s.alias]={type:"subquery"};else if(t.param)s={alias:t.as,joinmode:t.joinmode,onmiddlefn:l2,srcwherefns:"",srcwherefn:l2},i="let res=alasql.prepareFromData(params['"+t.param.param+"']",t.array&&(i+=",true"),i+="); if(cb) res=cb(res, idx, query); return res",s.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[s.alias]={type:"paramvalue"};else if(t.variable)s={alias:t.as,joinmode:t.joinmode,onmiddlefn:l2,srcwherefns:"",srcwherefn:l2},i="let res=alasql.prepareFromData(alasql.vars['"+t.variable+"']",t.array&&(i+=", true"),i+="); if(cb)res=cb(res, idx, query);return res",s.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[s.alias]={type:"varvalue"};else if(t.func){s={alias:t.as,joinmode:t.joinmode,onmiddlefn:l2,srcwherefns:"",srcwherefn:l2};let o="let res=alasql.from["+JSON.stringify(t.func.funcid.toUpperCase())+"](";const f=t.func.args;f&&f.length>0?(f[0]?o+=f[0].toJS("query.oldscope")+", ":o+="null, ",f[1]?o+=f[1].toJS("query.oldscope")+", ":o+="null, "):o+="null, null, ",o+="cb, idx, query); return res",s.datafn=new Function("query, params, cb, idx, alasql",o),e.aliases[s.alias]={type:"funcvalue"};}const a=s.alias;if(t.natural){if(t.using||t.on)throw new Error("NATURAL JOIN cannot have USING or ON clauses");if(e.sources.length>0){const o=e.sources[e.sources.length-1],f=c.databases[o.databaseid].tables[o.tableid],m=c.databases[s.databaseid].tables[s.tableid];if(f&&m){const E=f.columns.map(h=>h.columnid),p=m.columns.map(h=>h.columnid);t.using=_s(E,p).map(h=>({columnid:h}));}else throw new Error("In this version of Alasql NATURAL JOIN works for tables with predefined columns only")}}if(t.using){const o=e.sources[e.sources.length-1];s.onleftfns=t.using.map(f=>"p['"+(o.alias||o.tableid)+"']['"+f.columnid+"']").join('+"`"+'),s.onleftfn=new Function("p,params,alasql","let y;return "+s.onleftfns),s.onrightfns=t.using.map(f=>"p['"+(s.alias||s.tableid)+"']['"+f.columnid+"']").join('+"`"+'),s.onrightfn=new Function("p,params,alasql","let y;return "+s.onrightfns),s.optimization="ix";}else if(t.on)if(t.on instanceof S.Op&&t.on.op==="="&&!t.on.allsome){s.optimization="ix";let o="",f="",m="",E=false;const p=t.on.left.toJS("p",e.defaultTableid,e.defcols),h=t.on.right.toJS("p",e.defaultTableid,e.defcols);p.indexOf("p['"+a+"']")>-1&&!(h.indexOf("p['"+a+"']")>-1)?(p.match(/p\['.*?'\]/g)||[]).every(g=>g==="p['"+a+"']")?f=p:E=true:!(p.indexOf("p['"+a+"']")>-1)&&h.indexOf("p['"+a+"']")>-1&&(h.match(/p\['.*?'\]/g)||[]).every(g=>g==="p['"+a+"']")?o=p:E=true,h.indexOf("p['"+a+"']")>-1&&!(p.indexOf("p['"+a+"']")>-1)?(h.match(/p\['.*?'\]/g)||[]).every(g=>g==="p['"+a+"']")?f=h:E=true:!(h.indexOf("p['"+a+"']")>-1)&&p.indexOf("p['"+a+"']")>-1&&(p.match(/p\['.*?'\]/g)||[]).every(g=>g==="p['"+a+"']")?o=h:E=true,E&&(f="",o="",m=t.on.toJS("p",e.defaultTableid,e.defcols),s.optimization="no"),s.onleftfns=o,s.onrightfns=f,s.onmiddlefns=m||"true",s.onleftfn=new Function("p,params,alasql","let y;return "+s.onleftfns),s.onrightfn=new Function("p,params,alasql","let y;return "+s.onrightfns),s.onmiddlefn=new Function("p,params,alasql","let y;return "+s.onmiddlefns);}else s.optimization="no",s.onmiddlefns=t.on.toJS("p",e.defaultTableid,e.defcols),s.onmiddlefn=new Function("p,params,alasql","let y;return "+t.on.toJS("p",e.defaultTableid,e.defcols));e.sources.push(s);});},S.Select.prototype.compileWhere=function(e){if(this.where){if(typeof this.where=="function")return this.where;var n=this.where.toJS("p",e.defaultTableid,e.defcols);return e.wherefns=n,new Function("p,params,alasql","var y;return "+n)}else return function(){return true}};function si(e,n,t){e.onleftfn||(e.onleftfns=n,e.onrightfns=t,e.onleftfn=new Function("p,params,alasql","var y;return "+n),e.onrightfn=new Function("p,params,alasql","var y;return "+t),e.optimization="ix");}function ai(e,n,t){var r="("+n+"=="+t+")";e.srcwherefns=e.srcwherefns?e.srcwherefns+"&&"+r:r;}S.Select.prototype.compileWhereJoins=function(e){if(this.where&&!(e.sources.length<=1)){var n=e.sources.some(function(i,s){return s>0&&i.onleftfn});if(!n){var t=Ws(this.where),r={};e.sources.forEach(function(i,s){r[i.alias]=s;}),t.forEach(function(i){if(i.op==="="&&!i.allsome){var s=oi(i.left),a=oi(i.right),o=i.left.toJS("p",e.defaultTableid,e.defcols),f=i.right.toJS("p",e.defaultTableid,e.defcols);if(s.length===1&&a.length===1){var m=s[0],E=a[0];if(r[m]===void 0||r[E]===void 0)return;var p=r[m],h=r[E];h>p?si(e.sources[h],o,f):p>h&&si(e.sources[p],f,o);}else s.length===1&&a.length===0?r[s[0]]!==void 0&&ai(e.sources[r[s[0]]],o,f):s.length===0&&a.length===1&&r[a[0]]!==void 0&&ai(e.sources[r[a[0]]],o,f);}}),e.sources.forEach(function(i){i.srcwherefns&&(i.srcwherefn=new Function("p,params,alasql","var y;return "+i.srcwherefns));});}}};function Ws(e){var n=[];function t(r){if(r){if(r.expression){t(r.expression);return}r instanceof S.Op&&(r.op==="AND"?(t(r.left),t(r.right)):r.op==="="&&n.push(r));}}return t(e),n}function oi(e){var n=[];function t(r){if(r){if(r instanceof S.Column){r.tableid&&n.indexOf(r.tableid)===-1&&n.push(r.tableid);return}r instanceof S.Op&&(t(r.left),t(r.right));}}return t(e),n}function ui(e){if(!e.funcid||e.funcid.toUpperCase()!=="GROUP_CONCAT")return "";const n=e.separator!==void 0?JSON.stringify(e.separator):"undefined",t=e.order&&e.order.length>0&&e.order[0].direction?JSON.stringify(e.order[0].direction):"undefined";return `,${n},${t}`}S.Select.prototype.compileGroup=function(e){if(e.sources.length>0)var n=e.sources[0].alias;else var n="";var t=e.defcols,r=[[]];this.group&&(r=tn(this.group,e));var i=[];r.forEach(function(a){i=Is(i,a);}),e.allgroups=i,e.ingroup=[];var s="";return r.forEach(function(a){s+="var g=this.xgroups[";var o=a.map(function(p){var h=p.split(" ")[0],g=p.split(" ")[1];return h===""?"1":(e.ingroup.push(h),g)});o.length===0&&(o=["''"]),s+=o.join('+"`"+'),s+="];if(!g) {this.groups.push((g=this.xgroups[",s+=o.join('+"`"+'),s+="] = {",s+=a.map(function(p){var h=p.split(" ")[0],g=p.split(" ")[1];return h===""?"":"'"+h+"':"+g+","}).join("");var f=ws(i,a);s+=f.map(function(p){var h=p.split(" ")[0];return "'"+h+"':null,"}).join("");var m="",E="";typeof e.groupStar<"u"&&(E+="for(var f in p['"+e.groupStar+"']) {g[f]=p['"+e.groupStar+"'][f];};"),s+=e.selectGroup.map(function(p){var h=p.expression.toJS("p",n,t),g=p.nick;let A=v=>v.args[0].toJS("p",n,t);if(p instanceof S.AggrValue){if(p.distinct&&(m+=",g['$$_VALUES_"+g+"']={},g['$$_VALUES_"+g+"']["+h+"]=true"),p.aggregatorid==="SUM"){if("funcid"in p.expression){A(p.expression);return `'${g}':(__alasql_tmp = ${h}, (__alasql_tmp instanceof Date) ? undefined : ((__alasql_tmp || typeof __alasql_tmp == 'number') ? __alasql_tmp : undefined)),`}return `'${g}':(__alasql_tmp = ${h}, (__alasql_tmp instanceof Date) ? undefined : ((__alasql_tmp || typeof __alasql_tmp == 'number') ? __alasql_tmp : undefined)),`}else if(p.aggregatorid==="TOTAL"){if("funcid"in p.expression){let v=A(p.expression);return `'${g}':(${v}) || typeof ${v} == 'number' ?
|
|
2917
|
-
${v} : ${v} == 'string' && typeof Number(${v}) == 'number' ? Number(${v}) :
|
|
2918
|
-
typeof ${v} == 'boolean' ? Number(${v}) : 0,`}return `'${g}':(${h})|| typeof ${h} == 'number' ?
|
|
2919
|
-
${h} : ${h} == 'string' && typeof Number(${h}) == 'number' ? Number(${h}) :
|
|
2920
|
-
typeof ${h} === 'boolean' ? Number(${h}) : 0,`}else {if(p.aggregatorid==="FIRST"||p.aggregatorid==="LAST")return "'"+g+"':"+h+",";if(p.aggregatorid==="MIN"){if("funcid"in p.expression){A(p.expression);return `'${g}': (__alasql_tmp = ${h}, __alasql_tmp !== null && (typeof __alasql_tmp == 'number' || typeof __alasql_tmp == 'bigint' || (typeof __alasql_tmp == 'object' && (typeof Number(__alasql_tmp) == 'number' || __alasql_tmp instanceof Date))) ? __alasql_tmp : undefined),`}return `'${g}': (__alasql_tmp = ${h}, __alasql_tmp !== null && (typeof __alasql_tmp == 'number' || typeof __alasql_tmp == 'bigint' || (typeof __alasql_tmp == 'object' && (typeof Number(__alasql_tmp) == 'number' || __alasql_tmp instanceof Date))) ? __alasql_tmp : undefined),`}else if(p.aggregatorid==="MAX"){if("funcid"in p.expression){A(p.expression);return `'${g}': (__alasql_tmp = ${h}, __alasql_tmp !== null && (typeof __alasql_tmp == 'number' || typeof __alasql_tmp == 'bigint' || (typeof __alasql_tmp == 'object' && (typeof Number(__alasql_tmp) == 'number' || __alasql_tmp instanceof Date))) ? __alasql_tmp : undefined),`}return `'${g}' : (${h} !== null && (typeof ${h} == 'number' || typeof ${h} == 'bigint') ? ${h} : ${h} !== null && typeof ${h} == 'object' ?
|
|
2921
|
-
typeof Number(${h}) == 'number' ? ${h} : undefined : undefined),`}else {if(p.aggregatorid==="ARRAY")return `'${g}':[${h}],`;if(p.aggregatorid==="COUNT")return p.expression.columnid==="*"?`'${g}':1,`:`'${g}':(typeof ${h} == "undefined" || ${h} === null) ? 0 : 1,`;if(p.aggregatorid==="AVG")return e.removeKeys.push(`_SUM_${g}`),e.removeKeys.push(`_COUNT_${g}`),`'${g}':(function() { var t = ${h}; return (t instanceof Date) ? undefined : t; })(),'_SUM_${g}':(function() { var t = ${h}; return (t instanceof Date) ? undefined : (t || 0); })(),'_COUNT_${g}':(typeof ${h} == "undefined" || ${h} === null) ? 0 : 1,`;if(p.aggregatorid==="AGGR")return m+=`,g['${g}']=${p.expression.toJS("g",-1)}`,"";if(p.aggregatorid==="REDUCE"){e.aggrKeys.push(p);const v=ui(p);if(p.args&&p.args.length>1){let T=p.args.map(O=>O.toJS("p",n,t)).join(",");return `'${g}':alasql.aggr['${p.funcid}'](${T},undefined,1${v}),`}else return `'${g}':alasql.aggr['${p.funcid}'](${h},undefined,1${v}),`}}}return ""}return ""}).join(""),s+="}"+m+",g));"+E+"} else {",s+=e.selectGroup.map(function(p){var h=p.nick,g=p.expression.toJS("p",n,t);let A=O=>O.args[0].toJS("p",n,t);if(p instanceof S.AggrValue){var v="",T="";if(p.distinct&&(v=`if(typeof ${g}!="undefined" && (!g['$$_VALUES_${h}'][${g}])) {`,T=`g['$$_VALUES_${h}'][${g}]=true;}`),p.aggregatorid==="SUM"){if("funcid"in p.expression){let O=A(p.expression);return v+`
|
|
2922
|
-
{
|
|
2923
|
-
const __g_colas = g['${h}'];
|
|
2924
|
-
const __typeof_colexp1 = typeof ${O};
|
|
2925
|
-
const __colexp1 = ${O};
|
|
2926
|
-
|
|
2927
|
-
if (__g_colas == null && ${O} == null) {
|
|
2928
|
-
g['${h}'] = undefined;
|
|
2929
|
-
} else if (typeof __g_colas === 'bigint' || typeof __colexp1 === 'bigint') {
|
|
2930
|
-
g['${h}'] = BigInt(__g_colas) + BigInt(__colexp);
|
|
2931
|
-
} else if ((typeof __g_colas !== 'object' && typeof __g_colas !== 'number' && __typeof_colexp1 !== 'object' && __typeof_colexp1 !== 'number') ||
|
|
2932
|
-
(__g_colas == null || (typeof __g_colas !== 'number' && typeof __g_colas !== 'object')) && (${O} == null || (__typeof_colexp1 !== 'number' && __typeof_colexp1 !== 'object'))) {
|
|
2933
|
-
g['${h}'] = undefined;
|
|
2934
|
-
} else if ((typeof __g_colas !== 'object' && typeof __g_colas !== 'number' && __typeof_colexp1 == 'number') ||
|
|
2935
|
-
(__g_colas == null && __typeof_colexp1 == 'number')) {
|
|
2936
|
-
g['${h}'] = ${g};
|
|
2937
|
-
} else if (typeof __g_colas == 'number' && ${O} == null) {
|
|
2938
|
-
g['${h}'] = __g_colas;
|
|
2939
|
-
} else if (__g_colas instanceof Date || __colexp1 instanceof Date) {
|
|
2940
|
-
// Date objects cause string concatenation with +=, return undefined instead
|
|
2941
|
-
g['${h}'] = undefined;
|
|
2942
|
-
} else {
|
|
2943
|
-
g['${h}'] += ${g} || 0;
|
|
2944
|
-
}
|
|
2945
|
-
}
|
|
2946
|
-
`+T}return v+`
|
|
2947
|
-
{
|
|
2948
|
-
const __g_colas = g['${h}'];
|
|
2949
|
-
const __typeof_colexp = typeof ${g};
|
|
2950
|
-
const __colexp = ${g};
|
|
2951
|
-
|
|
2952
|
-
if (__g_colas == null && ${g} == null) {
|
|
2953
|
-
g['${h}'] = undefined;
|
|
2954
|
-
} else if (typeof __g_colas === 'bigint' || typeof __colexp === 'bigint') {
|
|
2955
|
-
g['${h}'] = BigInt(__g_colas) + BigInt(__colexp);
|
|
2956
|
-
} else if ((typeof __g_colas !== 'object' && typeof __g_colas !== 'number' && __typeof_colexp !== 'object' && __typeof_colexp !== 'number') ||
|
|
2957
|
-
(__g_colas == null || (typeof __g_colas !== 'number' && typeof __g_colas !== 'object')) && (${g} == null || (__typeof_colexp !== 'number' && __typeof_colexp !== 'object'))) {
|
|
2958
|
-
g['${h}'] = undefined;
|
|
2959
|
-
} else if (typeof __g_colas !== 'object' && typeof __g_colas !== 'number' && __typeof_colexp == 'number') {
|
|
2960
|
-
g['${h}'] = ${g};
|
|
2961
|
-
} else if (typeof __g_colas == 'number' && ${g} == null) {
|
|
2962
|
-
g['${h}'] = __g_colas;
|
|
2963
|
-
} else if (__g_colas == null && __typeof_colexp == 'number') {
|
|
2964
|
-
g['${h}'] = ${g};
|
|
2965
|
-
} else if (__g_colas instanceof Date || __colexp instanceof Date) {
|
|
2966
|
-
// Date objects cause string concatenation with +=, return undefined instead
|
|
2967
|
-
g['${h}'] = undefined;
|
|
2968
|
-
} else {
|
|
2969
|
-
g['${h}'] += ${g} || 0;
|
|
2970
|
-
}
|
|
2971
|
-
}
|
|
2972
|
-
`+T}else if(p.aggregatorid==="TOTAL"){if("funcid"in p.expression){let O=A(p.expression);return v+`{
|
|
2973
|
-
const __g_colas = g['${h}'];
|
|
2974
|
-
const __colexp1 = ${O};
|
|
2975
|
-
const __typeof_g_colas = typeof __g_colas;
|
|
2976
|
-
const __typeof_colexp1 = typeof __colexp1;
|
|
2977
|
-
|
|
2978
|
-
if (__typeof_g_colas == 'string' && !isNaN(__g_colas) && typeof Number(__g_colas) == 'number' &&
|
|
2979
|
-
__typeof_colexp1 == 'string' && !isNaN(__colexp1) && typeof Number(__colexp1) == 'number') {
|
|
2980
|
-
g['${h}'] = Number(__g_colas) + Number(__colexp1);
|
|
2981
|
-
} else if (__typeof_g_colas === 'bigint' || __typeof_colexp1 === 'bigint') {
|
|
2982
|
-
g['${h}'] = BigInt(__g_colas || 0) + BigInt(__colexp1 || 0);
|
|
2983
|
-
} else if (__typeof_g_colas == 'string' && __typeof_colexp1 == 'string') {
|
|
2984
|
-
g['${h}'] = 0;
|
|
2985
|
-
} else if (__typeof_g_colas == 'string' && __typeof_colexp1 == 'number') {
|
|
2986
|
-
g['${h}'] = __colexp1;
|
|
2987
|
-
} else if (__typeof_colexp1 == 'string' && __typeof_g_colas == 'number') {
|
|
2988
|
-
g['${h}'] = __g_colas;
|
|
2989
|
-
} else {
|
|
2990
|
-
g['${h}'] += __colexp1 || 0;
|
|
2991
|
-
}
|
|
2992
|
-
}`+T}return v+`{
|
|
2993
|
-
const __g_colas = g['${h}'];
|
|
2994
|
-
const __colexp = ${g};
|
|
2995
|
-
const __typeof_g_colas = typeof __g_colas;
|
|
2996
|
-
const __typeof_colexp = typeof __colexp;
|
|
2997
|
-
|
|
2998
|
-
if (__typeof_g_colas === 'string' && !isNaN(__g_colas) && typeof Number(__g_colas) === 'number' &&
|
|
2999
|
-
__typeof_colexp === 'string' && !isNaN(__colexp) && typeof Number(__colexp) === 'number') {
|
|
3000
|
-
g['${h}'] = Number(__g_colas) + Number(__colexp);
|
|
3001
|
-
} else if (__typeof_g_colas === 'bigint' || __typeof_colexp === 'bigint') {
|
|
3002
|
-
g['${h}'] = BigInt(__g_colas || 0) + BigInt(__colexp || 0);
|
|
3003
|
-
} else if (__typeof_g_colas === 'string' && __typeof_colexp === 'string') {
|
|
3004
|
-
g['${h}'] = 0;
|
|
3005
|
-
} else if (__typeof_g_colas === 'string' && __typeof_colexp === 'number') {
|
|
3006
|
-
g['${h}'] = __colexp;
|
|
3007
|
-
} else if (__typeof_colexp === 'string' && __typeof_g_colas === 'number') {
|
|
3008
|
-
g['${h}'] = __g_colas;
|
|
3009
|
-
} else {
|
|
3010
|
-
g['${h}'] += __colexp || 0;
|
|
3011
|
-
}
|
|
3012
|
-
}
|
|
3013
|
-
|
|
3014
|
-
`+T}else {if(p.aggregatorid==="COUNT")return p.expression.columnid==="*"?`${v}
|
|
3015
|
-
g['${h}']++;
|
|
3016
|
-
${T}`:`${v}
|
|
3017
|
-
if(typeof ${g}!="undefined" && ${g} !== null) g['${h}']++;
|
|
3018
|
-
${T}`;if(p.aggregatorid==="ARRAY")return v+"g['"+h+"'].push("+g+");"+T;if(p.aggregatorid==="MIN"){if("funcid"in p.expression){let O=A(p.expression);return v+`if ((g['${h}'] == null && ${O} !== null) ? y = ${g} :
|
|
3019
|
-
(g['${h}'] !== null && ${O} == null) ? y = g['${h}'] :
|
|
3020
|
-
((y = ${g}) < g['${h}'])) {
|
|
3021
|
-
if (typeof y == 'number' || typeof y == 'bigint') {
|
|
3022
|
-
g['${h}'] = y;
|
|
3023
|
-
} else if (typeof y == 'object' && y instanceof Date) {
|
|
3024
|
-
g['${h}'] = y;
|
|
3025
|
-
} else if (typeof y == 'object' && typeof Number(y) == 'number') {
|
|
3026
|
-
g['${h}'] = Number(y);
|
|
3027
|
-
}
|
|
3028
|
-
} else if (g['${h}'] !== null && typeof g['${h}'] == 'object' && y instanceof Date) {
|
|
3029
|
-
g['${h}'] = g['${h}'];
|
|
3030
|
-
} else if (g['${h}'] !== null && typeof g['${h}'] == 'object') {
|
|
3031
|
-
g['${h}'] = Number(g['${h}']);
|
|
3032
|
-
}`+T}return v+`if((g['${h}'] == null && ${g}!== null) ? y = ${g} :
|
|
3033
|
-
(g['${h}']!== null && ${g} == null) ? y = g['${h}'] :
|
|
3034
|
-
((y=${g}) < g['${h}'])) {
|
|
3035
|
-
if(typeof y == 'number' || typeof y == 'bigint') {
|
|
3036
|
-
g['${h}'] = y;
|
|
3037
|
-
} else if(typeof y == 'object' && y instanceof Date) {
|
|
3038
|
-
g['${h}'] = y;
|
|
3039
|
-
} else if(typeof y == 'object' && typeof Number(y) == 'number') {
|
|
3040
|
-
g['${h}'] = Number(y);
|
|
3041
|
-
}
|
|
3042
|
-
} else if(g['${h}']!== null && typeof g['${h}'] == 'object' && y instanceof Date) {
|
|
3043
|
-
g['${h}'] = g['${h}'];
|
|
3044
|
-
} else if(g['${h}']!== null && typeof g['${h}'] == 'object') {
|
|
3045
|
-
g['${h}'] = Number(g['${h}']);
|
|
3046
|
-
}`+T}else if(p.aggregatorid==="MAX"){if("funcid"in p.expression){let O=A(p.expression);return v+`if ((g['${h}'] == null && ${O} !== null) ? y = ${g} :
|
|
3047
|
-
(g['${h}'] !== null && ${O} == null) ? y = g['${h}'] :
|
|
3048
|
-
((y = ${g}) > g['${h}'])) {
|
|
3049
|
-
if (typeof y == 'number' || typeof y == 'bigint') {
|
|
3050
|
-
g['${h}'] = y;
|
|
3051
|
-
} else if (typeof y == 'object' && y instanceof Date) {
|
|
3052
|
-
g['${h}'] = y;
|
|
3053
|
-
} else if (typeof y == 'object' && typeof Number(y) == 'number') {
|
|
3054
|
-
g['${h}'] = Number(y);
|
|
3055
|
-
}
|
|
3056
|
-
} else if (g['${h}'] !== null && typeof g['${h}'] == 'object' && y instanceof Date) {
|
|
3057
|
-
g['${h}'] = g['${h}'];
|
|
3058
|
-
} else if (g['${h}'] !== null && typeof g['${h}'] == 'object') {
|
|
3059
|
-
g['${h}'] = Number(g['${h}']);
|
|
3060
|
-
}`+T}return v+`if ((g['${h}'] == null && ${g} !== null) ? y = ${g} :
|
|
3061
|
-
(g['${h}'] !== null && ${g} == null) ? y = g['${h}'] :
|
|
3062
|
-
((y = ${g}) > g['${h}'])) {
|
|
3063
|
-
if (typeof y == 'number' || typeof y == 'bigint') {
|
|
3064
|
-
g['${h}'] = y;
|
|
3065
|
-
} else if (typeof y == 'object' && y instanceof Date) {
|
|
3066
|
-
g['${h}'] = y;
|
|
3067
|
-
} else if (typeof y == 'object' && typeof Number(y) == 'number') {
|
|
3068
|
-
g['${h}'] = Number(y);
|
|
3069
|
-
}
|
|
3070
|
-
} else if (g['${h}'] !== null && typeof g['${h}'] == 'object' && y instanceof Date) {
|
|
3071
|
-
g['${h}'] = g['${h}'];
|
|
3072
|
-
} else if (g['${h}'] !== null && typeof g['${h}'] == 'object') {
|
|
3073
|
-
g['${h}'] = Number(g['${h}']);
|
|
3074
|
-
}`+T}else {if(p.aggregatorid==="FIRST")return "";if(p.aggregatorid==="LAST")return `${v}g['${h}']=${g};${T}`;if(p.aggregatorid==="AVG")return `${v}
|
|
3075
|
-
y= (${g});
|
|
3076
|
-
g['_COUNT_${h}'] += (typeof y == "undefined" || y === null) ? 0 : 1;
|
|
3077
|
-
if (y instanceof Date || (g['_SUM_${h}'] && g['_SUM_${h}'] instanceof Date)) {
|
|
3078
|
-
// AVG on Date objects doesn't make semantic sense - return undefined
|
|
3079
|
-
g['_SUM_${h}'] = undefined;
|
|
3080
|
-
g['${h}'] = undefined;
|
|
3081
|
-
} else if (typeof g['_SUM_${h}'] === 'bigint' || typeof y === 'bigint') {
|
|
3082
|
-
g['_SUM_${h}'] = BigInt(g['_SUM_${h}']);
|
|
3083
|
-
g['_SUM_${h}'] += BigInt(y || 0);
|
|
3084
|
-
g['${h}'] = BigInt(g['_SUM_${h}']) / BigInt(g['_COUNT_${h}']);
|
|
3085
|
-
} else {
|
|
3086
|
-
g['_SUM_${h}'] += (y || 0);
|
|
3087
|
-
g['${h}'] = g['_SUM_${h}'] / g['_COUNT_${h}'];
|
|
3088
|
-
}
|
|
3089
|
-
${T}`;if(p.aggregatorid==="AGGR")return `${v}
|
|
3090
|
-
g['${h}']=${p.expression.toJS("g",-1)};
|
|
3091
|
-
${T}`;if(p.aggregatorid==="REDUCE"){const O=ui(p);if(p.args&&p.args.length>1){let b=p.args.map(C1=>C1.toJS("p",n,t)).join(",");return `${v}
|
|
3092
|
-
g['${h}'] = alasql.aggr.${p.funcid}(${b},g['${h}'],2${O});
|
|
3093
|
-
${T}`}else return `${v}
|
|
3094
|
-
g['${h}'] = alasql.aggr.${p.funcid}(${g},g['${h}'],2${O});
|
|
3095
|
-
${T}`}}}return ""}return ""}).join(""),s+="}";}),new Function("p,params,alasql","var y;"+s)};var Xs=/^(SUM|MAX|MIN|FIRST|LAST|AVG|ARRAY|REDUCE|TOTAL)$/;function fi(e,n,t){var r="",i=[],s={};return n.forEach(function(a){e.ixsources={},e.sources.forEach(function(f){e.ixsources[f.alias]=f;});var o;if(e.ixsources[a])var o=e.ixsources[a].columns;t&&c.options.joinstar=="json"&&(r+="r['"+a+"']={};"),o&&o.length>0?o.forEach(function(f){const m=_e(f.columnid);if(t&&c.options.joinstar=="underscore")i.push("'"+a+"_"+m+"':p['"+a+"']['"+m+"']");else if(t&&c.options.joinstar=="json")r+="r['"+a+"']['"+m+"']=p['"+a+"']['"+m+"'];";else {var E="p['"+a+"']['"+m+"']";if(s[f.columnid]){var h=E+" !== undefined ? "+E+" : "+s[f.columnid].value;i[s[f.columnid].id]=s[f.columnid].key+h,s[f.columnid].value=h;}else {var p="'"+m+"':";i.push(p+E),s[f.columnid]={id:i.length-1,value:E,key:p};}}e.selectColumns[m]=true;var g={columnid:f.columnid,dbtypeid:f.dbtypeid,dbsize:f.dbsize,dbprecision:f.dbprecision,dbenum:f.dbenum};e.columns.push(g),e.xcolumns[g.columnid]=g;}):(t&&c.options.joinstar=="json"?r+="r['"+_e(a)+"']=p['"+_e(a)+"'];":t&&c.options.joinstar=="underscore"?r+='var w=p["'+_e(a)+'"];for(var k in w){r["'+_e(a)+'_"+k]=w[k]};':r+='var w=p["'+_e(a)+'"];for(var k in w){r[k]=w[k]};',e.dirtyColumns=true);}),{s:i.join(","),sp:r}}function Ks(e){if(!e||e.op!=="->")return null;for(var n=[],t=e;t&&t.op==="->";){if(typeof t.right=="string")n.unshift(t.right);else if(typeof t.right=="number")n.unshift(t.right);else return null;t=t.left;}return t&&t.columnid?(n.unshift(t.columnid),n):null}S.Select.prototype.compileSelect1=function(e,n){var t=this;e.columns=[],e.xcolumns={},e.selectColumns={},e.dirtyColumns=false;var r="var r={",i="",s=[];return this.columns.forEach(function(a){if(a instanceof S.Column)if(a.columnid==="*")if(a.func)i+="r=params['"+a.param+"'](p['"+e.sources[0].alias+"'],p,params,alasql);";else if(a.tableid){var o=fi(e,[a.tableid],false);o.s&&(s=s.concat(o.s)),i+=o.sp;}else {var o=fi(e,Object.keys(e.aliases),true);o.s&&(s=s.concat(o.s)),i+=o.sp;}else {var f=a.tableid,m=a.databaseid||e.sources[0].databaseid||e.database.databaseid;if(f||(f=e.defcols[a.columnid]),f||(f=e.defaultTableid),a.columnid!=="_"){var E=n&&n.length>1&&Array.isArray(n[0])&&n[0].length>=1&&n[0][0].hasOwnProperty("sheetid");if(E)i='var r={};var w=p["'+f+'"];var cols=['+t.columns.map(function(k1){return "'"+k1.columnid+"'"}).join(",")+"];var colas=["+t.columns.map(function(k1){return "'"+(k1.as||k1.columnid)+"'"}).join(",")+"];for (var i=0;i<Object.keys(p['"+f+"']).length;i++) for(var k=0;k<cols.length;k++){if (!r.hasOwnProperty(i)) r[i]={}; r[i][colas[k]]=w[i][cols[k]];}";else {var p=!a.tableid&&e.sources.length>1&&(!e.defcols[a.columnid]||e.defcols[a.columnid]==="-");if(p){var h=Object.keys(e.aliases),g=h.map(function(k1){return "p['"+k1+"']['"+a.columnid+"']"}).join(" ?? ");s.push("'"+_e(a.as||a.columnid)+"':("+g+")");}else s.push("'"+_e(a.as||a.columnid)+"':p['"+f+"']['"+a.columnid+"']");}}else s.push("'"+_e(a.as||a.columnid)+"':p['"+f+"']");if(e.selectColumns[_e(a.as||a.columnid)]=true,e.aliases[f]&&e.aliases[f].type==="table"){if(!c.databases[m].tables[e.aliases[f].tableid])throw new Error("Table '"+f+"' does not exist in database");var A=c.databases[m].tables[e.aliases[f].tableid].columns,v=c.databases[m].tables[e.aliases[f].tableid].xcolumns;if(v&&A.length>0){var T=v[a.columnid];if(T===void 0)throw new Error("Column does not exist: "+a.columnid);var O={columnid:a.as||a.columnid,dbtypeid:T.dbtypeid,dbsize:T.dbsize,dbpecision:T.dbprecision,dbenum:T.dbenum};e.columns.push(O),e.xcolumns[O.columnid]=O;}else {var O={columnid:a.as||a.columnid};e.columns.push(O),e.xcolumns[O.columnid]=O,e.dirtyColumns=true;}}else {var O={columnid:a.as||a.columnid};e.columns.push(O),e.xcolumns[O.columnid]=O;}}else if(a instanceof S.AggrValue){a.as||(a.as=_e(a.toString())),a.over?e.windowaggrs.push({as:a.as,aggregatorid:a.aggregatorid,expression:a.expression,partitionColumns:a.over.partition?a.over.partition.map(function(W1){return W1.columnid||W1.toString()}):[]}):(t.group||(t.group=[""]),Xs.test(a.aggregatorid)?s.push("'"+_e(a.as)+"':"+Er(a.expression.toJS("p",e.defaultTableid,e.defcols))):a.aggregatorid==="COUNT"&&s.push("'"+_e(a.as)+"':1"));var O={columnid:a.as||a.columnid||a.toString()};e.columns.push(O),e.xcolumns[O.columnid]=O;}else {var b=e.intoObject&&!a.as?Ks(a):null;if(b&&b.length>1){for(var C1=Er(a.toJS("p",e.defaultTableid,e.defcols)),C=0;C<b.length-1;C++){var a1=b.slice(0,C+1),r1=a1.map(function(W1){return "['"+_e(W1)+"']"}).join("");i+="r"+r1+" = r"+r1+" || {};";}var j=b.map(function(W1){return "['"+_e(W1)+"']"}).join("");i+="r"+j+" = "+C1+";";var i1=b[0];e.selectColumns[_e(i1)]=true;var O={columnid:i1};e.xcolumns[O.columnid]||(e.columns.push(O),e.xcolumns[O.columnid]=O);}else {s.push("'"+_e(a.as||a.columnid||a.toString())+"':"+Er(a.toJS("p",e.defaultTableid,e.defcols))),e.selectColumns[_e(a.as||a.columnid||a.toString())]=true;var O={columnid:a.as||a.columnid||a.toString()};e.columns.push(O),e.xcolumns[O.columnid]=O;}}}),r+=s.join(",")+"};"+i,r},S.Select.prototype.compileSelect2=function(e,n){var t=e.selectfns;return this.orderColumns&&this.orderColumns.length>0&&!this.union&&!this.unionall&&!this.except&&!this.intersect&&this.orderColumns.forEach(function(r,i){var s="$$$"+i;r._useColumnIndex!==void 0?t+="var keys=Object.keys(r);r['"+s+"']=r[keys["+r.columnIndex+"]];":r instanceof S.Column&&e.xcolumns[r.columnid]?t+="r['"+s+"']=r['"+r.columnid+"'];":r instanceof S.ParamValue&&e.xcolumns[n[r.param]]?t+="r['"+s+"']=r['"+n[r.param]+"'];":t+="r['"+s+"']="+r.toJS("p",e.defaultTableid,e.defcols)+";",e.removeKeys.push(s);}),new Function("p,params,alasql","var y;"+t+"return r")},S.Select.prototype.compileSelectGroup0=function(e){var n=this,t=null,r=null;n.group&&(t={},n.group.forEach(function(i,s){i instanceof S.Column&&i.columnid&&!i.tableid&&(t[i.columnid]=s);}),r={},n.columns.forEach(function(i){i instanceof S.Column&&i.columnid&&(r[i.columnid]=true);})),n.columns.forEach(function(i,s){if(i instanceof S.Column&&i.columnid==="*")e.groupStar=i.tableid||"default";else {var a;i instanceof S.Column?a=_e(i.columnid):a=_e(i.toString(true));for(var o=0;o<s;o++)if(a===n.columns[o].nick){a=n.columns[o].nick+":"+s;break}if(i.nick=a,n.group){var f=n.group.findIndex(function(p){return p.columnid===i.columnid&&p.tableid===i.tableid});if(f>-1&&(n.group[f].nick=a),i.as&&t&&t.hasOwnProperty(i.as)&&!r[i.as]){var m=t[i.as],E=N3(i);delete E.as,E.nick=a,n.group[m]=E;}}i.funcid&&(i.funcid.toUpperCase()==="ROWNUM"||i.funcid.toUpperCase()==="ROW_NUMBER")&&(i.over&&i.over.partition?e.grouprownums.push({as:i.as,partitionColumns:i.over.partition.map(function(p){return p.columnid||p.toString()})}):e.rownums.push(i.as)),i.funcid&&i.funcid.toUpperCase()==="GROUP_ROW_NUMBER"&&e.grouprownums.push({as:i.as,columnIndex:0});}}),this.columns.forEach(function(i){i.findAggregator&&i.findAggregator(e);}),this.having&&this.having.findAggregator&&this.having.findAggregator(e);},S.Select.prototype.compileSelectGroup1=function(e){var n=this,t="var r = {};";return n.columns.forEach(function(r){if(r instanceof S.Column&&r.columnid==="*")return t+="for(var k in g) {r[k]=g[k]};","";var i=r.as;i===void 0&&(r instanceof S.Column?i=_e(r.columnid):i=r.nick),e.groupColumns[i]=r.nick,t+="r['"+i+"']=",t+=Er(r.toJS("g",""))+";";for(var s=0;s<e.removeKeys.length;s++)if(e.removeKeys[s]===i){e.removeKeys.splice(s,1);break}}),t},S.Select.prototype.compileSelectGroup2=function(e){var n=this,t=e.selectgfns,r={};return n.group&&n.group.forEach(function(i){var s=(i.tableid||"")+" "+i.columnid;r[s]=i;}),n.columns.forEach(function(i){if(!(i instanceof S.Column&&i.columnid==="*")){var s=null;if(i instanceof S.Column&&n.group){var a=(i.tableid||"")+" "+i.columnid;s=r[a];}var o=s!==null||e.ingroup.indexOf(i.nick)>-1;if(o){var f=s&&s.nick||i.nick;t+="r['"+(i.as||i.nick)+"']=g['"+f+"'];";}}}),this.orderColumns&&this.orderColumns.length>0&&!this.union&&!this.unionall&&!this.except&&!this.intersect&&this.orderColumns.forEach(function(i,s){var a="$$$"+s;i._useColumnIndex!==void 0?t+="var keys=Object.keys(r);r['"+a+"']=r[keys["+i.columnIndex+"]];":i instanceof S.Column&&e.groupColumns[i.columnid]?t+="r['"+a+"']=r['"+i.columnid+"'];":t+="r['"+a+"']="+i.toJS("g","")+";",e.removeKeys.push(a);}),new Function("g,params,alasql","var y;"+t+"return r")},S.Select.prototype.compileRemoveColumns=function(e){typeof this.removecolumns<"u"&&(e.removeKeys=e.removeKeys.concat(this.removecolumns.filter(function(t){return typeof t.like>"u"}).map(function(t){return t.columnid})),e.removeLikeKeys=this.removecolumns.filter(function(t){return typeof t.like<"u"}).map(function(t){return t.like.value}));},S.Select.prototype.compileHaving=function(e){if(this.having){var n=this.having.toJS("g",-1);return e.havingfns=n,new Function("g,params,alasql","var y;return "+n)}return function(){return true}},S.Select.prototype.compileOrder=function(e,n){var t=this;if(t.orderColumns=[],this.order){if(this.order&&this.order.length==1&&this.order[0].expression&&typeof this.order[0].expression=="function"){var r=this.order[0].expression,i=this.order[0].nullsOrder=="FIRST"?-1:this.order[0].nullsOrder=="LAST"?1:0;return function(o,f){var m=r(o),E=r(f);if(i){if(m==null)return E==null?0:i;if(E==null)return -i}return m>E?1:m==E?0:-1}}var s="",a="";return this.order.forEach(function(o,f){if(o.expression instanceof S.NumValue){if(o.expression.value<1)throw new Error(`Invalid column number ${o.expression.value}. Column numbers must be at least 1.`);var m=t.columns[o.expression.value-1],E=t.columns.length===1&&t.columns[0]instanceof S.Column&&t.columns[0].columnid==="*";if(E)m={_useColumnIndex:true,columnIndex:o.expression.value-1};else {if(o.expression.value>t.columns.length)throw new Error(`You are trying to order by column number ${o.expression.value} but you have only selected ${t.columns.length} columns.`);m instanceof S.Column&&m.columnid==="*"&&(m={_useColumnIndex:true,columnIndex:o.expression.value-1});}}else if(o.expression instanceof S.StringValue)var m=new S.Column({columnid:o.expression.value});else var m=o.expression;t.orderColumns.push(m);var p="$$$"+f,h="",g;if(o.expression instanceof S.Column?g=o.expression.columnid:o.expression instanceof S.ParamValue?g=n[o.expression.param]:o.expression instanceof S.StringValue&&(g=o.expression.value),g){if(c.options.valueof)h=".valueOf()";else if(e.xcolumns[g]){var A=e.xcolumns[g].dbtypeid;(A=="DATE"||A=="DATETIME"||A=="DATETIME2"||A=="STRING"||A=="NUMBER")&&(h=".valueOf()");}}o.nocase&&(h+=".toUpperCase()"),o.nullsOrder&&(o.nullsOrder=="FIRST"?s+="if((a['"+p+"'] != null) && (b['"+p+"'] == null)) return 1;":o.nullsOrder=="LAST"&&(s+="if((a['"+p+"'] == null) && (b['"+p+"'] != null)) return 1;"),s+="if((a['"+p+"'] == null) == (b['"+p+"'] == null)) {",a+="}"),s+="if((a['"+p+"']||'')"+h+(o.direction=="ASC"?">":"<")+"(b['"+p+"']||'')"+h+")return 1;",s+="if((a['"+p+"']||'')"+h+"==(b['"+p+"']||'')"+h+"){",a+="}";}),s+="return 0;",s+=a+"return -1",e.orderfns=s,new Function("a,b","var y;"+s)}},S.Select.prototype.compilePivot=function(e){var n=this,t=n.pivot.columnid,r=n.pivot.expr.aggregatorid,i=n.pivot.inlist,s=null;if(n.pivot.expr.expression.hasOwnProperty("columnid")?s=n.pivot.expr.expression.columnid:s=n.pivot.expr.expression.expression.columnid,s==null)throw "columnid not found";return i&&(i=i.map(function(a){return a.expr.columnid})),function(){var a=this;if(!a.data||a.data.length===0){a.columns=[];return}var o=Object.keys(a.data[0]),f=o.filter(function(C1){return C1!==t&&C1!==s}),m=[],E={},p={},h={},g=[];if(a.data.forEach(function(C1){if(!(i&&i.indexOf(C1[t])===-1)){var C=f.map(function(i1){return C1[i1]===void 0||C1[i1]===null?"":C1[i1]}).join("`"),a1=p[C];a1||(a1={},p[C]=a1,g.push(a1),f.forEach(function(i1){a1[i1]=C1[i1];})),h[C]||(h[C]={});var r1=C1[t],j=C1[s];if(h[C][r1]?j!==null&&typeof j<"u"&&h[C][r1]++:h[C][r1]=j!==null&&typeof j<"u"?1:0,E[r1]||(E[r1]=true,m.push(r1)),r=="SUM"||r=="AVG"||r=="TOTAL")j!==null&&typeof j<"u"?a1[r1]=typeof a1[r1]>"u"||a1[r1]===null?Number(j):a1[r1]+Number(j):typeof a1[r1]>"u"&&(a1[r1]=null);else if(r=="COUNT")s==="*"||j!==null&&typeof j<"u"?a1[r1]=(a1[r1]||0)+1:typeof a1[r1]>"u"&&(a1[r1]=0);else if(r=="MIN")j!==null&&typeof j<"u"?(typeof a1[r1]>"u"||a1[r1]===null||j<a1[r1])&&(a1[r1]=j):typeof a1[r1]>"u"&&(a1[r1]=null);else if(r=="MAX")j!==null&&typeof j<"u"?(typeof a1[r1]>"u"||a1[r1]===null||j>a1[r1])&&(a1[r1]=j):typeof a1[r1]>"u"&&(a1[r1]=null);else if(r=="FIRST")typeof a1[r1]>"u"&&(a1[r1]=j);else if(r=="LAST")a1[r1]=j;else if(c.aggr[r])typeof a1[r1]>"u"?a1[r1]=c.aggr[r](j,void 0,1):a1[r1]=c.aggr[r](j,a1[r1],2);else throw new Error("Unknown aggregator in PIVOT clause: "+r)}}),r=="AVG")for(var A in p){var v=p[A];for(var T in h[A])if(v.hasOwnProperty(T)&&v[T]!==null){var O=h[A][T];O>0?v[T]=v[T]/O:v[T]=null;}}a.data=g,i?m=i:m.sort();let b=a.columns.find(C1=>C1.columnid===s);if(!b&&a.sources&&a.sources.length>0){let C1=a.sources[0].tableid,C=a.sources[0].databaseid;C1&&C&&c.databases[C]?.tables?.[C1]?.xcolumns&&(b=c.databases[C].tables[C1].xcolumns[s]);}b=b||{columnid:s,dbtypeid:"OBJECT"},a.columns=a.columns.filter(function(C1){return f.includes(C1.columnid)}),m.forEach(function(C1){var C=N3(b);C.columnid=C1;const a1=(b.dbtypeid||"OBJECT").toUpperCase(),r1=["INT","INTEGER","SMALLINT","BIGINT","SERIAL","SMALLSERIAL","BIGSERIAL"],j=[...r1,"NUMBER","FLOAT","DECIMAL","NUMERIC","MONEY"];r==="COUNT"?C.dbtypeid="INT":r==="AVG"?r1.includes(a1)?C.dbtypeid=b.dbtypeid:C.dbtypeid="FLOAT":r==="SUM"||r==="TOTAL"?j.includes(a1)?C.dbtypeid=b.dbtypeid:C.dbtypeid="FLOAT":r==="MIN"||r==="MAX"||r==="FIRST"||r==="LAST"?C.dbtypeid=b.dbtypeid:C.dbtypeid||(C.dbtypeid="OBJECT"),a.columns.push(C);});}},S.Select.prototype.compileUnpivot=function(e){var n=this,t=n.unpivot.tocolumnid,r=n.unpivot.forcolumnid,i=n.unpivot.inlist.map(function(s){return s.columnid});return function(){var s=[],a=e.columns.map(function(o){return o.columnid}).filter(function(o){return i.indexOf(o)==-1&&o!=r&&o!=t});e.data.forEach(function(o){i.forEach(function(f){var m={};a.forEach(function(E){m[E]=o[E];}),m[r]=f,m[t]=o[f],s.push(m);});}),e.data=s;}};const qs=(e,n)=>{const t=[];let r=0;const i=e.length;for(let s=0;s<i+1;s++){const a=[];for(let o=0;o<i;o++){let f;e[o]instanceof S.Column?(e[o].nick=_e(e[o].columnid),n.groupColumns[_e(e[o].columnid)]=e[o].nick,f=`${e[o].nick} ${e[o].toJS("p",n.sources[0].alias,n.defcols)}`):(n.groupColumns[_e(e[o].toString())]=_e(e[o].toString()),f=`${_e(e[o].toString())} ${e[o].toJS("p",n.sources[0].alias,n.defcols)}`),r&1<<o&&a.push(f);}t.push(a),r=(r<<1)+1;}return t},Qs=(e,n)=>{const t=[],r=e.length,i=1<<r;for(let s=0;s<i;s++){let a=[];for(let o=0;o<r;o++)s&1<<o&&(a=a.concat(tn(e[o],n)));t.push(a);}return t},zs=(e,n)=>e.reduce((t,r)=>(t=t.concat(tn(r,n)),t),[]),en=(e,n)=>{const t=[];for(let r=0;r<e.length;r++)for(let i=0;i<n.length;i++)t.push(e[r].concat(n[i]));return t};function tn(e,n){if(Array.isArray(e)){let t=[[]];for(let r=0;r<e.length;r++)if(e[r]instanceof S.Column)e[r].nick=e[r].nick?_e(e[r].nick):_e(e[r].columnid),n.groupColumns[e[r].nick]=e[r].nick,t=t.map(i=>i.concat(`${e[r].nick} ${e[r].toJS("p",n.sources[0].alias,n.defcols)}`));else if(e[r]instanceof S.FuncValue)n.groupColumns[_e(e[r].toString())]=_e(e[r].toString()),t=t.map(i=>i.concat(`${_e(e[r].toString())} ${e[r].toJS("p",n.sources[0].alias,n.defcols)}`));else if(e[r]instanceof S.GroupExpression)if(e[r].type=="ROLLUP")t=en(t,qs(e[r].group,n));else if(e[r].type=="CUBE")t=en(t,Qs(e[r].group,n));else if(e[r].type=="GROUPING SETS")t=en(t,zs(e[r].group,n));else throw new Error("Unknown grouping function");else e[r]===""?t=[["1 1"]]:t=t.map(i=>i.concat(`${_e(e[r].toString())} ${e[r].toJS("p",n.sources[0].alias,n.defcols)}`));return t}return e instanceof S.FuncValue?(n.groupColumns[_e(e.toString())]=_e(e.toString()),[`${e.toString()} ${e.toJS("p",n.sources[0].alias,n.defcols)}`]):e instanceof S.Column?(e.nick=_e(e.columnid),n.groupColumns[e.nick]=e.nick,[`${e.nick} ${e.toJS("p",n.sources[0].alias,n.defcols)}`]):(n.groupColumns[_e(e.toString())]=_e(e.toString()),[`${_e(e.toString())} ${e.toJS("p",n.sources[0].alias,n.defcols)}`])}S.Select.prototype.compileDefCols=function(e,n){var t={".":{}};return this.from&&this.from.forEach(function(r){if(t["."][r.as||r.tableid]=true,r instanceof S.Table){var i=r.as||r.tableid,s=c.databases[r.databaseid||n].tables[r.tableid];if(s===void 0)throw new Error("Table does not exist: "+r.tableid);s.columns&&s.columns.forEach(function(a){t[a.columnid]?t[a.columnid]="-":t[a.columnid]=i;});}else if(!(r instanceof S.Select)){if(!(r instanceof S.Search)){if(!(r instanceof S.ParamValue)){if(!(r instanceof S.VarValue)){if(!(r instanceof S.FuncValue)){if(!(r instanceof S.FromData)){if(!(r instanceof S.Json)){if(!r.inserted)throw new Error("Unknown type of FROM clause")}}}}}}}}),this.joins&&this.joins.forEach(function(r){if(t["."][r.as||r.table.tableid]=true,r.table){var i=r.as||r.table.tableid,s=r.table.databaseid||n,a=c.databases[s];if(a===void 0)throw new Error("Database does not exist: "+s);var o=a.tables[r.table.tableid];if(o===void 0)throw new Error("Table does not exist: "+r.table.tableid);o.columns&&o.columns.forEach(function(f){t[f.columnid]?t[f.columnid]="-":t[f.columnid]=i;});}else if(!r.select){if(!r.param){if(!r.func)throw new Error("Unknown type of FROM clause")}}}),t},S.Union=class{constructor(n){Object.assign(this,n);}toString(){return "UNION"}compile(n){return null}},S.Apply=class{constructor(n){Object.assign(this,n);}toString(){let n=`${this.applymode} APPLY (${this.select.toString()})`;return this.as&&(n+=` AS ${this.as}`),n}},S.Over=class{constructor(n){Object.assign(this,n);}toString(){let n="OVER (";return this.partition&&(n+=`PARTITION BY ${this.partition.toString()}`,this.order&&(n+=" ")),this.order&&(n+=`ORDER BY ${this.order.toString()}`),n+=")",n}};{const e=Object.assign;class n{constructor(R){e(this,R);}toString(){return this.expression.toString()}execute(R,M1,ee){if(this.expression){c.precompile(this,R,M1);var _1=new Function("params,alasql,p","var y;return "+this.expression.toJS("({})","",null)).bind(this),X1=_1(M1,c);return ee&&(X1=ee(X1)),X1}}}class t{constructor(R){e(this,R);}toString(){var R=this.expression.toString();return this.order&&(R+=" "+this.order.toString()),this.nocase&&(R+=" COLLATE NOCASE"),this.direction&&(R+=" "+this.direction),R}findAggregator(R){this.expression.findAggregator&&this.expression.findAggregator(R);}toJS(R,M1,ee){return this.expression.reduced?"true":this.expression.toJS(R,M1,ee)}compile(R,M1,ee){return this.reduced?l2():new Function("p","var y;return "+this.toJS(R,M1,ee))}}class r{constructor(R){e(this,R);}toString(){var R="``"+this.value+"``";return R}toJS(){return "("+this.value+")"}execute(R,M1,ee){var _1=1,X1=new Function("params,alasql,p",this.value);return X1(M1,c),ee&&(_1=ee(_1)),_1}}class i{constructor(R){e(this,R);}toString(){var R=this.value;return this.value1&&(R=this.value1+"."+R),R}}class s{constructor(R){e(this,R);}toString(){var R=" ";return this.joinmode&&(R+=this.joinmode+" "),R+="JOIN "+this.table.toString(),R}}class a{constructor(R){e(this,R);}toString(){var R=this.tableid;return this.databaseid&&(R=this.databaseid+"."+R),R}}class o{constructor(R){e(this,R);}toString(){var R=this.viewid;return this.databaseid&&(R=this.databaseid+"."+R),R}}const f=new Set(["-","*","/","%","^","<<",">>","&","|"]),m=new Set(["||"]),E=/[\s.\-\[\]]/,p=new Set(["AND","OR","NOT","=","==","===","!=","!==","!===",">",">=","<","<=","IN","NOT IN","LIKE","NOT LIKE","REGEXP","GLOB","BETWEEN","NOT BETWEEN","IS NULL","IS NOT NULL"]);class h{constructor(R){e(this,R);}toString(){const R=this.left.toString();let M1;return this.op==="IN"||this.op==="NOT IN"?`${R} ${this.op} (${this.right.toString()})`:this.allsome?`${R} ${this.op} ${this.allsome} (${this.right.toString()})`:this.op==="->"||this.op==="!"?(M1=`${R}${this.op}`,typeof this.right!="string"&&typeof this.right!="number"?M1+`(${this.right.toString()})`:M1+this.right.toString()):this.op==="BETWEEN"||this.op==="NOT BETWEEN"?`${R} ${this.op} ${this.right1.toString()} AND ${this.right2.toString()}`:`${R} ${this.op} ${this.allsome?this.allsome+" ":""}${this.right.toString()}`}findAggregator(R){this.left&&this.left.findAggregator&&this.left.findAggregator(R),(this.op==="BETWEEN"||this.op==="NOT BETWEEN")&&(this.right1&&this.right1.findAggregator&&this.right1.findAggregator(R),this.right2&&this.right2.findAggregator&&this.right2.findAggregator(R)),this.right&&this.right.findAggregator&&!this.allsome&&this.right.findAggregator(R);}toType(R){if(f.has(this.op))return "number";if(m.has(this.op))return "string";if(this.op==="+"){const M1=this.left.toType(R),ee=this.right.toType(R);if(M1==="string"||ee==="string")return "string";if(M1==="number"||ee==="number")return "number"}return p.has(this.op)||this.allsome?"boolean":this.op?"unknown":this.left.toType(R)}toJS(R,M1,ee){var _1;let X1=[],Se=this.op,Ie=false,Xe=this,Ve=function(Re){return Re.toJS&&(Re=Re.toJS(R,M1,ee)),"y["+(X1.push(Re)-1)+"]"};var we=function(){return Ve(Xe.left)},Ge=function(){return Ve(Xe.right)};if(this.op==="=")Se="===";else if(this.op==="<>")Se="!=";else if(this.op==="OR")Se="||";else if(this.op==="->"){const Re=`(${we()} || {})`;if(typeof this.right=="string")_1=`${Re}["${_e(this.right)}"]`;else if(typeof this.right=="number")_1=`${Re}[${this.right}]`;else if(this.right instanceof S.FuncValue){let Oe=[];this.right.args&&this.right.args.length>0&&(Oe=this.right.args.map(Ve)),_1=`${Re}[${JSON.stringify(this.right.funcid)}](${Oe.join(",")})`;}else _1=`${Re}[${Ge()}]`;}else if(this.op==="!")typeof this.right=="string"&&(_1=`alasql.databases[alasql.useid].objects[${we()}]["${this.right}"]`);else if(this.op==="IS"){const Re=we(),Oe=Ge();this.right instanceof S.NullValue||this.right.op==="NOT"&&this.right.right instanceof S.NullValue?_1=`((${Re} == null) === (${Oe} == null))`:_1=`((${Re} == ${Oe}) || (${Re} < 0 && true == ${Oe}))`;}else if(this.op==="==")_1=`alasql.utils.deepEqual(${we()}, ${Ge()})`;else if(this.op==="==="||this.op==="!===")_1=`(${this.op==="!==="?"!":""}((${we()}).valueOf() === (${Ge()}).valueOf()))`;else if(this.op==="!==")_1=`(!alasql.utils.deepEqual(${we()}, ${Ge()}))`;else if(this.op==="||")_1=`(''+(${we()} || '') + (${Ge()} || ''))`;else if(this.op==="LIKE"||this.op==="NOT LIKE")_1=`(${this.op==="NOT LIKE"?"!":""}alasql.utils.like(${Ge()}, ${we()}${this.escape?`, ${Ve(this.escape)}`:""}))`;else if(this.op==="REGEXP")_1=`alasql.stdfn.REGEXP_LIKE(${we()}, ${Ge()})`;else if(this.op==="GLOB")_1=`alasql.utils.glob(${we()}, ${Ge()})`;else if(this.op==="BETWEEN"||this.op==="NOT BETWEEN"){const Re=we();_1=`(${this.op==="NOT BETWEEN"?"!":""}((${Ve(this.right1)} <= ${Re}) && (${Re} <= ${Ve(this.right2)})))`;}else if(this.op==="IN")if(this.right instanceof S.Select){const Re=`in${this.queriesidx}`,Oe=`(this.queriesfn[${this.queriesidx}].query && this.queriesfn[${this.queriesidx}].query.isCorrelated)`,Pe=`((this.subqueryCache = this.subqueryCache || {}, this.subqueryCache.${Re} || (this.subqueryCache.${Re} = new Set(alasql.utils.flatArray(this.queriesfn[${this.queriesidx}](params, null, ${R})).map(alasql.utils.getValueOf)))).has(alasql.utils.getValueOf(${we()})))`,He=`(alasql.utils.flatArray(this.queriesfn[${this.queriesidx}](params, null, ${R})).indexOf(alasql.utils.getValueOf(${we()})) > -1)`;_1=`(${Oe} ? ${He} : ${Pe})`;}else if(Array.isArray(this.right))if(this.right.length===0)we(),_1="false",Ie=true;else if(!c.options.cache||this.right.some(Re=>Re instanceof S.ParamValue))_1=`(new Set([${this.right.map(Ve).join(",")}]).has(alasql.utils.getValueOf(${we()})))`;else {c.sets=c.sets||{};const Re=this.right.map(Pe=>Pe.value),Oe=Re.join(",");c.sets[Oe]=c.sets[Oe]||new Set(Re),_1=`alasql.sets["${Oe}"].has(alasql.utils.getValueOf(${we()}))`;}else _1=`(${Ge()}.indexOf(${we()}) > -1)`;else if(this.op==="NOT IN")if(this.right instanceof S.Select){const Re=`notIn${this.queriesidx}`,Oe=`(this.queriesfn[${this.queriesidx}].query && this.queriesfn[${this.queriesidx}].query.isCorrelated)`,Pe=`(!(this.subqueryCache = this.subqueryCache || {}, this.subqueryCache.${Re} || (this.subqueryCache.${Re} = new Set(alasql.utils.flatArray(this.queriesfn[${this.queriesidx}](params, null, ${R})).map(alasql.utils.getValueOf)))).has(alasql.utils.getValueOf(${we()})))`,He=`(alasql.utils.flatArray(this.queriesfn[${this.queriesidx}](params, null, ${R})).indexOf(alasql.utils.getValueOf(${we()})) < 0)`;_1=`(${Oe} ? ${He} : ${Pe})`;}else if(Array.isArray(this.right))if(this.right.length===0)we(),_1="true",Ie=true;else if(!c.options.cache||this.right.some(Re=>Re instanceof S.ParamValue))_1=`(!(new Set([${this.right.map(Ve).join(",")}]).has(alasql.utils.getValueOf(${we()}))))`;else {c.sets=c.sets||{};const Re=this.right.map(Pe=>Pe.value),Oe=Re.join(",");c.sets[Oe]=c.sets[Oe]||new Set(Re),_1=`!alasql.sets["${Oe}"].has(alasql.utils.getValueOf(${we()}))`;}else _1=`(${Ge()}.indexOf(${we()}) === -1)`;if(this.allsome==="ALL"){var _1;if(this.right instanceof S.Select)_1="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",_1+=".every(function(b){return (",_1+=we()+")"+Se+"b})";else if(Array.isArray(this.right))_1=""+(this.right.length==1?Ve(this.right[0]):"["+this.right.map(Ve).join(",")+"]"),_1+=".every(function(b){return (",_1+=we()+")"+Se+"b})";else throw new Error("NOT IN operator without SELECT")}if(this.allsome==="SOME"||this.allsome==="ANY"){var _1;if(this.right instanceof S.Select)_1="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",_1+=".some(function(b){return (",_1+=we()+")"+Se+"b})";else if(Array.isArray(this.right))_1=""+(this.right.length==1?Ve(this.right[0]):"["+this.right.map(Ve).join(",")+"]"),_1+=".some(function(b){return (",_1+=we()+")"+Se+"b})";else throw new Error("SOME/ANY operator without SELECT")}if(this.op==="AND"){if(this.left.reduced){if(this.right.reduced)return "true";_1=Ge();}else this.right.reduced&&(_1=we());Se="&&";}var Me=_1||"("+we()+Se+Ge()+")",Ze="y=[("+X1.join("), (")+")]";return Ie||Se==="&&"||Se==="||"||Se==="IS"||Se==="IS NULL"||Se==="IS NOT NULL"?"("+Ze+", "+Me+")":`(${Ze}, y.some(e => e == null || (typeof e === 'number' && isNaN(e))) ? void 0 : ${Me})`}}class g{constructor(R){e(this,R);}toString(){return "@"+this.variable}toType(){return "unknown"}toJS(){return "alasql.vars['"+_e(this.variable)+"']"}}class A{constructor(R){e(this,R);}toString(){return this.value.toString()}toType(){return "number"}toJS(){return ""+this.value}}class v{constructor(R){e(this,R);}toString(){return "'"+this.value.toString()+"'"}toType(){return "string"}toJS(){return "'"+_e(this.value)+"'"}}class T{constructor(R){e(this,R);}toString(){return "VALUE"}toType(){return "object"}toJS(R,M1,ee){return R}}class O{constructor(R){e(this,R);}toString(){return "ARRAY[]"}toType(){return "object"}toJS(R,M1,ee){return "[("+this.value.map(function(_1){return _1.toJS(R,M1,ee)}).join("), (")+")]"}}class b{constructor(R){e(this,R);}toString(){return this.value?"TRUE":"FALSE"}toType(){return "boolean"}toJS(){return this.value?"true":"false"}}class C1{constructor(R){e(this,R);}toString(){return "NULL"}toJS(){return "undefined"}}class C{constructor(R){e(this,R);}toString(){return "$"+this.param}toJS(){return typeof this.param=="string"?"params['"+this.param+"']":"params["+this.param+"]"}}const a1={"~":"~","-":"-","+":"+",NOT:"!"};class r1{constructor(R){e(this,R);}toString(){const{op:R,right:M1}=this,ee=M1.toString();switch(R){case "~":case "-":case "+":case "#":return R+ee;case "NOT":return R+"("+ee+")";default:return "("+ee+")"}}findAggregator(R){this.right.findAggregator&&this.right.findAggregator(R);}toType(){switch(this.op){case "-":case "+":return "number";case "NOT":return "boolean";default:return "string"}}toJS(R,M1,ee){if(this.right instanceof j&&this.op==="#")return `(alasql.databases[alasql.useid].objects['${this.right.columnid}'])`;const _1=this.right.toJS(R,M1,ee);if(a1.hasOwnProperty(this.op))return `(${a1[this.op]}(${_1}))`;if(this.op==null)return `(${_1})`;throw new Error(`Unsupported operator: ${this.op}`)}}class j{constructor(R){e(this,R);}static needsBrackets(R){return R==null?false:R==+R?true:E.test(R)}static wrapId(R){return j.needsBrackets(R)?"["+R+"]":R}toString(){const R=j.needsBrackets(this.columnid);let M1=R?"["+this.columnid+"]":this.columnid;if(this.tableid){const ee=R?"":".";M1=j.wrapId(this.tableid)+ee+M1,this.databaseid&&(M1=j.wrapId(this.databaseid)+"."+M1);}return M1}toJS(R,M1,ee){if(!this.tableid&&M1===""&&!ee)return this.columnid!=="_"?`${R}['${this.columnid}']`:R==="g"?"g['_']":R;if(R==="g")return `g['${this.nick||this.columnid}']`;if(this.tableid)return this.columnid!=="_"?`${R}['${this.tableid}']['${this.columnid}']`:R==="g"?"g['_']":`${R}['${this.tableid}']`;if(ee){const _1=ee[this.columnid];if(_1==="-")throw new Error(`Cannot resolve column "${this.columnid}" because it exists in two source tables`);return _1?this.columnid!=="_"?`${R}['${_1}']['${this.columnid}']`:`${R}['${_1}']`:this.columnid!=="_"?`${R}['${this.tableid||M1}']['${this.columnid}']`:`${R}['${this.tableid||M1}']`}return M1===-1?`${R}['${this.columnid}']`:this.columnid!=="_"?`${R}['${this.tableid||M1}']['${this.columnid}']`:`${R}['${this.tableid||M1}']`}}class i1{constructor(R){e(this,R);}toString(){const R=this.aggregatorid==="REDUCE"?this.funcid.replace(ci,""):this.aggregatorid,M1=this.distinct?"DISTINCT ":"",ee=this.expression?this.expression.toString():"",_1=this.over?` ${this.over.toString()}`:"";return `${R}(${M1}${ee})${_1}`}findAggregator(R){if(this.over)return;let M1=R.selectGroup.find(ee=>ee.toString()===this.toString());M1?this.aggrNick=M1.nick:(this.nick||(this.nick=_e(this.toString())+":"+R.selectGroup.length,R.removeKeys.includes(this.nick)||R.removeKeys.push(this.nick)),this.aggrNick=this.nick,R.selectGroup.push(this));}toType(){return ["SUM","COUNT","AVG","MIN","MAX","AGGR","VAR","STDDEV","TOTAL"].includes(this.aggregatorid)?"number":this.aggregatorid==="ARRAY"?"array":this.expression.toType()}toJS(){var R=this.aggrNick||this.nick;return R===void 0&&(R=_e(this.toString())),"g['"+R+"']"}}class k1{constructor(R){e(this,R);}}k1.prototype.toString=t.prototype.toString;class W1{constructor(R){e(this,R);}toString(){return this.type+"("+this.group.toString()+")"}}e(S,{AggrValue:i1,ArrayValue:O,Column:j,DomainValueValue:T,Expression:t,ExpressionStatement:n,GroupExpression:W1,JavaScript:r,Join:s,Literal:i,LogicValue:b,NullValue:C1,NumValue:A,Op:h,OrderExpression:k1,ParamValue:C,StringValue:v,Table:a,UniOp:r1,VarValue:g,View:o});}S.FromData=function(e){return S.extend(this,e)},S.FromData.prototype.toString=function(){return this.data?"DATA("+(Math.random()*1e16|0)+")":"?"},S.FromData.prototype.toJS=function(){},S.Select.prototype.exec=function(e,n){this.preparams&&(e=this.preparams.concat(e));var t=c.useid,r=c.databases[t],i=this.toString(),s=d3(i),a=this.compile(t);if(a){a.sql=i,a.dbversion=r.dbversion,r.sqlCacheSize>c.MAXSQLCACHESIZE&&r.resetSqlCache(),r.sqlCacheSize++,r.sqlCache[s]=a;var o=c.res=a(e,n);return o}},S.Select.prototype.Select=function(){var e=this,n=[];if(arguments.length>1)n=Array.prototype.slice.call(arguments);else if(arguments.length==1)Array.isArray(arguments[0])?n=arguments[0]:n=[arguments[0]];else throw new Error("Wrong number of arguments of Select() function");return e.columns=[],n.forEach(function(t){if(typeof t=="string")e.columns.push(new S.Column({columnid:t}));else if(typeof t=="function"){var r=0;e.preparams?r=e.preparams.length:e.preparams=[],e.preparams.push(t),e.columns.push(new S.Column({columnid:"*",func:t,param:r}));}}),e},S.Select.prototype.From=function(e){var n=this;if(n.from||(n.from=[]),Array.isArray(e)){var t=0;n.preparams?t=n.preparams.length:n.preparams=[],n.preparams.push(e),n.from.push(new S.ParamValue({param:t}));}else if(typeof e=="string")n.from.push(new S.Table({tableid:e}));else throw new Error("Unknown arguments in From() function");return n},S.Select.prototype.OrderBy=function(){var e=this,n=[];if(e.order=[],arguments.length==0)n=["_"];else if(arguments.length>1)n=Array.prototype.slice.call(arguments);else if(arguments.length==1)Array.isArray(arguments[0])?n=arguments[0]:n=[arguments[0]];else throw new Error("Wrong number of arguments of Select() function");return n.length>0&&n.forEach(function(t){var r=new S.Column({columnid:t});typeof t=="function"&&(r=t),e.order.push(new S.OrderExpression({expression:r,direction:"ASC"}));}),e},S.Select.prototype.Top=function(e){var n=this;return n.top=new S.NumValue({value:e}),n},S.Select.prototype.GroupBy=function(){var e=this,n=[];if(arguments.length>1)n=Array.prototype.slice.call(arguments);else if(arguments.length==1)Array.isArray(arguments[0])?n=arguments[0]:n=[arguments[0]];else throw new Error("Wrong number of arguments of Select() function");return e.group=[],n.forEach(function(t){var r=new S.Column({columnid:t});e.group.push(r);}),e},S.Select.prototype.Where=function(e){var n=this;return typeof e=="function"&&(n.where=e),n},S.FuncValue=function(e){return Object.assign(this,e)};let ci=/[^0-9A-Z_$]+/i;S.FuncValue.prototype.toString=function(){let e="";return c.fn[this.funcid]?e+=this.funcid:c.aggr[this.funcid]?e+=this.funcid:(c.stdlib[this.funcid.toUpperCase()]||c.stdfn[this.funcid.toUpperCase()])&&(e+=this.funcid.toUpperCase().replace(ci,"")),this.funcid!=="CURRENT_TIMESTAMP"&&(e+="(",this.args&&this.args.length>0&&(e+=this.args.map(function(n){return n.toString()}).join(",")),e+=")"),this.over&&(e+=" "+this.over.toString()),e},S.FuncValue.prototype.execute=function(e,n,t){let r=1;return c.precompile(this,e,n),new Function("params,alasql","var y;return "+this.toJS("","",null))(n,c),t&&(r=t(r)),r},S.FuncValue.prototype.findAggregator=function(e){this.args&&this.args.length>0&&this.args.forEach(function(n){n.findAggregator&&n.findAggregator(e);});},S.FuncValue.prototype.toJS=function(e,n,t){var r="",i=this.funcid;return !c.fn[i]&&c.stdlib[i.toUpperCase()]?this.args&&this.args.length>0?r+=c.stdlib[i.toUpperCase()].apply(this,this.args.map(function(s){return s.toJS(e,n)})):r+=c.stdlib[i.toUpperCase()]():!c.fn[i]&&c.stdfn[i.toUpperCase()]?(this.newid&&(r+="new "),r+="alasql.stdfn["+JSON.stringify(this.funcid.toUpperCase())+"](",this.args&&this.args.length>0&&(r+=this.args.map(function(s){return s.toJS(e,n,t)}).join(",")),r+=")"):(this.newid&&(r+="new "),r+="alasql.fn["+JSON.stringify(this.funcid)+"](",this.args&&this.args.length>0&&(r+=this.args.map(function(s){return s.toJS(e,n,t)}).join(",")),r+=")"),r};var Ue=c.stdlib={},Fe=c.stdfn={};Ue.ABS=function(e){return "Math.abs("+e+")"},Ue.CLONEDEEP=function(e){return "alasql.utils.cloneDeep("+e+")"},Fe.CONCAT=function(){return Array.prototype.slice.call(arguments).join("")},Ue.EXP=function(e){return "Math.pow(Math.E,"+e+")"},Ue.IIF=function(e,n,t){if(arguments.length===3)return `((${e}) ? (${n}) : (${t}))`;throw new Error("Number of arguments of IFF is not equals to 3")},Ue.IFNULL=function(e,n){return `((typeof ${e} === "undefined" || ${e} === null) ? ${n} : ${e})`},Ue.INSTR=function(e,n){return `((${e}).indexOf(${n}) + 1)`},Ue.LEN=Ue.LENGTH=function(e){return Q3(e,"y.length")},Ue.LOWER=Ue.LCASE=function(e){return Q3(e,"String(y).toLowerCase()")},Ue.LTRIM=function(e){return Q3(e,'y.replace(/^[ ]+/,"")')},Ue.RTRIM=function(e){return Q3(e,'y.replace(/[ ]+$/,"")')},Ue.MAX=Ue.GREATEST=function(){return "["+Array.prototype.join.call(arguments,",")+"].reduce(function (a, b) { return a > b ? a : b; })"},Ue.MIN=Ue.LEAST=function(){return "["+Array.prototype.join.call(arguments,",")+"].reduce(function (a, b) { return a < b ? a : b; })"},Ue.SUBSTRING=Ue.SUBSTR=Ue.MID=function(e,n,t){if(arguments.length==2)return Q3(e,"y.substr("+n+"-1)");if(arguments.length==3)return Q3(e,"y.substr("+n+"-1,"+t+")")},Fe.REGEXP_LIKE=function(e,n,t){var r=n.replace(/\[\[:<:\]\]/g,"\\b").replace(/\[\[:>:\]\]/g,"\\b");return (e||"").search(RegExp(r,t))>-1},Ue.ISNULL=Ue.NULLIF=function(e,n){return "("+e+"=="+n+"?undefined:"+e+")"},Ue.POWER=function(e,n){return "Math.pow("+e+","+n+")"},Ue.RANDOM=function(e){return arguments.length==0?"Math.random()":"(Math.random()*("+e+")|0)"},Ue.ROUND=function(e,n){return arguments.length==2?"(__alasql_tmp = ("+e+'), (__alasql_tmp == null || (typeof __alasql_tmp === "string" && __alasql_tmp.trim() === "")) ? undefined : ((__alasql_tmp = Number(__alasql_tmp)), isNaN(__alasql_tmp) ? undefined : Math.round(__alasql_tmp*Math.pow(10,('+n+")))/Math.pow(10,("+n+"))))":"(__alasql_tmp = ("+e+'), (__alasql_tmp == null || (typeof __alasql_tmp === "string" && __alasql_tmp.trim() === "")) ? undefined : ((__alasql_tmp = Number(__alasql_tmp)), isNaN(__alasql_tmp) ? undefined : Math.round(__alasql_tmp)))'},Ue.CEIL=Ue.CEILING=function(e){return "Math.ceil("+e+")"},Ue.FLOOR=function(e){return "Math.floor("+e+")"},Ue.ROWNUM=function(){return "1"},Ue.ROW_NUMBER=function(){return "1"},Ue.GROUP_ROW_NUMBER=function(){return "1"},Ue.SQRT=function(e){return "Math.sqrt("+e+")"},Ue.TRIM=function(e){return Q3(e,"y.trim()")},Ue.UPPER=Ue.UCASE=function(e){return Q3(e,"String(y).toUpperCase()")},Fe.CONCAT_WS=function(){var e=Array.prototype.slice.call(arguments);return e=e.filter(n=>!(n===null||typeof n>"u")),e.slice(1,e.length).join(e[0]||"")},c.aggr.group_concat=c.aggr.GROUP_CONCAT=function(e,n,t,r,i){if(r===void 0&&(r=","),t===1)return e==null?{values:[],separator:r,orderDirection:i}:{values:[e],separator:r,orderDirection:i};if(t===2)return e==null?n:n==null?{values:[e],separator:r,orderDirection:i}:(typeof n=="string"&&(n={values:n.split(","),separator:",",orderDirection:void 0}),n.values.push(e),n);{if(n==null)return;if(typeof n=="string")return n;let s=n.values;if(s.length===0)return;if(n.orderDirection&&n.orderDirection!==void 0){let a=n.orderDirection==="ASC";s=s.slice().sort((o,f)=>o===f?0:o==null?1:f==null?-1:typeof o=="string"&&typeof f=="string"?a?o.localeCompare(f):f.localeCompare(o):a?o<f?-1:1:f<o?-1:1);}return s.join(n.separator)}},c.aggr.median=c.aggr.MEDIAN=function(e,n,t){if(t===2)return e!==null&&n.push(e),n;if(t===1)return e===null?[]:[e];if(!n.length)return;let r=n.sort((o,f)=>o>f?1:o<f?-1:0),i=(r.length+1)/2,s=i|0,a=r[s-1];return i===s||typeof a!="number"&&!(a instanceof Number)?a:(a+r[s])/2},c.aggr.QUART=function(e,n,t,r){if(t===2)return e!==null&&n.push(e),n;if(t===1)return e===null?[]:[e];if(!n.length)return n;r=r||1;var i=n.sort(function(a,o){return a===o?0:a>o?1:-1});let s=r*(i.length+1)/4;return Number.isInteger(s)?i[s-1]:i[Math.floor(s)]},c.aggr.QUART2=function(e,n,t){return c.aggr.QUART(e,n,t,2)},c.aggr.QUART3=function(e,n,t){return c.aggr.QUART(e,n,t,3)},c.aggr.VAR=function(e,n,t){return t===1?e===null?{sum:0,sumSq:0,count:0}:{sum:e,sumSq:e*e,count:1}:t===2?(e!==null&&(n.sum+=e,n.sumSq+=e*e,n.count++),n):n.count>1?(n.sumSq-n.sum*n.sum/n.count)/(n.count-1):0},c.aggr.STDEV=function(e,n,t){return t===1||t===2?c.aggr.VAR(e,n,t):Math.sqrt(c.aggr.VAR(e,n,t))},c.aggr.STDEV=function(e,n,t){return t===1||t===2?c.aggr.VAR(e,n,t):Math.sqrt(c.aggr.VAR(e,n,t))},c.aggr.VARP=function(e,n,t){if(t===1)return {count:1,sum:e,sumSq:e*e};if(t===2)return n.count++,n.sum+=e,n.sumSq+=e*e,n;if(n.count>0){const r=n.sum/n.count;return n.sumSq/n.count-r*r}else return 0},c.aggr.STD=c.aggr.STDDEV=c.aggr.STDEVP=function(e,n,t){return t==1||t==2?c.aggr.VARP(e,n,t):Math.sqrt(c.aggr.VARP(e,n,t))},c._aggrOriginal=c.aggr,c.aggr={},Object.keys(c._aggrOriginal).forEach(function(e){c.aggr[e]=function(n,t,r){if(!(r===3&&typeof t>"u"))return c._aggrOriginal[e].apply(null,arguments)};}),Fe.REPLACE=function(e,n,t){return String(e??"").split(String(n??"")).join(String(t??""))};for(var i2=[],Yt=0;Yt<256;Yt++)i2[Yt]=(Yt<16?"0":"")+Yt.toString(16);Fe.NEWID=Fe.UUID=Fe.GEN_RANDOM_UUID=function(){var e=Math.random()*4294967295|0,n=Math.random()*4294967295|0,t=Math.random()*4294967295|0,r=Math.random()*4294967295|0;return i2[e&255]+i2[e>>8&255]+i2[e>>16&255]+i2[e>>24&255]+"-"+i2[n&255]+i2[n>>8&255]+"-"+i2[n>>16&15|64]+i2[n>>24&255]+"-"+i2[t&63|128]+i2[t>>8&255]+"-"+i2[t>>16&255]+i2[t>>24&255]+i2[r&255]+i2[r>>8&255]+i2[r>>16&255]+i2[r>>24&255]},S.CaseValue=function(e){return Object.assign(this,e)},S.CaseValue.prototype.toString=function(){var e="CASE ";return this.expression&&(e+=this.expression.toString()),this.whens&&(e+=this.whens.map(function(n){return " WHEN "+n.when.toString()+" THEN "+n.then.toString()}).join()),e+=" END",e},S.CaseValue.prototype.findAggregator=function(e){this.expression&&this.expression.findAggregator&&this.expression.findAggregator(e),this.whens&&this.whens.length>0&&this.whens.forEach(function(n){n.when.findAggregator&&n.when.findAggregator(e),n.then.findAggregator&&n.then.findAggregator(e);}),this.elses&&this.elses.findAggregator&&this.elses.findAggregator(e);},S.CaseValue.prototype.toJS=function(e,n,t){let r=`(((${e}, params, alasql) => {
|
|
3096
|
-
let y, r;`;return this.expression?(r+=`let v = ${this.expression.toJS(e,n,t)};`,this.whens.forEach((i,s)=>{const a=`v === ${i.when.toJS(e,n,t)}`,o=`r = ${i.then.toJS(e,n,t)}`;r+=`${s===0?"if":" else if"} (${a}) { ${o}; }`;})):this.whens.forEach((i,s)=>{const a=i.when.toJS(e,n,t),o=`r = ${i.then.toJS(e,n,t)}`;r+=`${s===0?"if":" else if"} (${a}) { ${o}; }`;}),this.elses&&(r+=` else { r = ${this.elses.toJS(e,n,t)}; }`),r+="; return r; }))("+e+", params, alasql)",r},S.Json=function(e){return Object.assign(this,e)},S.Json.prototype.toString=function(){var e="";return e+=M3(this.value),e+="",e};const M3=c.utils.JSONtoString=function(e){if(typeof e=="string")return `"${e}"`;if(typeof e=="number"||typeof e=="boolean")return String(e);if(typeof e=="bigint")return `${e.toString()}n`;if(Array.isArray(e))return `[${e.map(n=>M3(n)).join(",")}]`;if(typeof e=="object")if(!e.toJS||e instanceof S.Json){const n=[];for(const t in e){const r=typeof t=="string"?`"${t}"`:String(t),i=M3(e[t]);n.push(`${r}:${i}`);}return `{${n.join(",")}}`}else {if(e.toString)return e.toString();throw new Error(`1: Cannot show JSON object ${JSON.stringify(e)}`)}else throw new Error(`2: Cannot show JSON object ${JSON.stringify(e)}`)};function Tr(e,n,t,r){var i="";if(typeof e=="string")i='"'+e+'"';else if(typeof e=="number")i="("+e+")";else if(typeof e=="boolean")i=e;else if(typeof e=="bigint")i=e.toString()+"n";else if(typeof e=="object")if(Array.isArray(e))i+=`[${e.map(s=>Tr(s,n,t,r)).join(",")}]`;else if(!e.toJS||e instanceof S.Json){let s=[];for(const a in e){let o=typeof a=="string"?`"${a}"`:a.toString(),f=Tr(e[a],n,t,r);s.push(`${o}:${f}`);}i=`{${s.join(",")}}`;}else if(e.toJS)i=e.toJS(n,t,r);else throw new Error(`Cannot parse JSON object ${JSON.stringify(e)}`);else throw new Error("2Can not parse JSON object "+JSON.stringify(e));return i}S.Json.prototype.toJS=function(e,n,t){return Tr(this.value,e,n,t)},S.Convert=function(e){return Object.assign(this,e)},S.Convert.prototype.toString=function(){var e="CONVERT(";return e+=this.dbtypeid,typeof this.dbsize<"u"&&(e+="("+this.dbsize,this.dbprecision&&(e+=","+this.dbprecision),e+=")"),e+=","+this.expression.toString(),this.style&&(e+=","+this.style),e+=")",e},S.Convert.prototype.toJS=function(e,n,t){return `alasql.stdfn.CONVERT(${this.expression.toJS(e,n,t)}, {
|
|
3097
|
-
dbtypeid: "${this.dbtypeid}",
|
|
3098
|
-
dbsize: ${this.dbsize},
|
|
3099
|
-
dbprecision: ${this.dbprecision},
|
|
3100
|
-
style: ${this.style}
|
|
3101
|
-
})`};function Zs(e){var n=e.getMonth()+1,t=e.getYear(),r=e.getFullYear(),i=e.getDate(),s=e.toString().substr(4,3),a=("0"+i).substr(-2),o=("0"+n).substr(-2),f=("0"+t).substr(-2),m=("0"+e.getHours()).substr(-2),E=("0"+e.getMinutes()).substr(-2),p=("0"+e.getSeconds()).substr(-2),h=("00"+e.getMilliseconds()).substr(-3);return {month:n,year:t,fullYear:r,date:i,day:s,formattedDate:a,formattedMonth:o,formattedYear:f,formattedHour:m,formattedMinutes:E,formattedSeconds:p,formattedMilliseconds:h}}c.stdfn.CONVERT=function(e,n){var t=e,r=n.dbtypeid?.toUpperCase(),i,s;if((n.style||n.dbtypeid=="Date"||["DATE","DATETIME","DATETIME2"].indexOf(r)>-1)&&(/\d{8}/.test(t)?i=new Date(+t.substr(0,4),+t.substr(4,2)-1,+t.substr(6,2)):i=s3(t),s=Zs(i)),n.style)switch(n.style){case 1:t=s.formattedMonth+"/"+s.formattedDate+"/"+s.formattedYear;break;case 2:t=s.formattedYear+"."+s.formattedMonth+"."+s.formattedDate;break;case 3:t=s.formattedDate+"/"+s.formattedMonth+"/"+s.formattedYear;break;case 4:t=s.formattedDate+"."+s.formattedMonth+"."+s.formattedYear;break;case 5:t=s.formattedDate+"-"+s.formattedMonth+"-"+s.formattedYear;break;case 6:t=s.formattedDate+" "+s.day.toLowerCase()+" "+s.formattedYear;break;case 7:t=s.day+" "+s.formattedDate+","+s.formattedYear;break;case 8:case 108:t=s.formattedHour+":"+s.formattedMinutes+":"+s.formattedSeconds;break;case 10:t=s.formattedMonth+"-"+s.formattedDate+"-"+s.formattedYear;break;case 11:t=s.formattedYear+"/"+s.formattedMonth+"/"+s.formattedDate;break;case 12:t=s.formattedYear+s.formattedMonth+s.formattedDate;break;case 101:t=s.formattedMonth+"/"+s.formattedDate+"/"+s.fullYear;break;case 102:t=s.fullYear+"."+s.formattedMonth+"."+s.formattedDate;break;case 103:t=s.formattedDate+"/"+s.formattedMonth+"/"+s.fullYear;break;case 104:t=s.formattedDate+"."+s.formattedMonth+"."+s.fullYear;break;case 105:t=s.formattedDate+"-"+s.formattedMonth+"-"+s.fullYear;break;case 106:t=s.formattedDate+" "+s.day.toLowerCase()+" "+s.fullYear;break;case 107:t=s.day+" "+s.formattedDate+","+s.fullYear;break;case 110:t=s.formattedMonth+"-"+s.formattedDate+"-"+s.fullYear;break;case 111:t=s.fullYear+"/"+s.formattedMonth+"/"+s.formattedDate;break;case 112:t=s.fullYear+s.formattedMonth+s.formattedDate;break;default:throw new Error("The CONVERT style "+n.style+" is not realized yet.")}switch(r){case "DATE":return `${s.formattedYear}.${s.formattedMonth}.${s.formattedDate}`;case "DATETIME":case "DATETIME2":return `${s.fullYear}.${s.formattedMonth}.${s.formattedDate} ${s.formattedHour}:${s.formattedMinutes}:${s.formattedSeconds}.${s.formattedMilliseconds}`;case "MONEY":var a=+t;return (a|0)+a*100%100/100;case "BOOLEAN":return !!t;case "INT":case "INTEGER":case "SMALLINT":case "BIGINT":case "SERIAL":case "SMALLSERIAL":case "BIGSERIAL":return t|0;case "STRING":case "VARCHAR":case "NVARCHAR":case "CHARACTER VARIABLE":return n.dbsize?String(t).substr(0,n.dbsize):String(t);case "CHAR":case "CHARACTER":case "NCHAR":return (t+" ".repeat(n.dbsize)).substr(0,n.dbsize);case "NUMBER":case "FLOAT":case "DECIMAL":case "NUMERIC":var a=+t;return n.dbsize!==void 0&&(a=parseFloat(a.toPrecision(n.dbsize))),n.dbprecision!==void 0&&(a=parseFloat(a.toFixed(n.dbprecision))),a;case "JSON":if(typeof t=="object")return t;try{return JSON.parse(t)}catch{throw new Error("Cannot convert string to JSON")}case "Date":return t;default:return t}},S.ColumnDef=function(e){return Object.assign(this,e)},S.ColumnDef.prototype.toString=function(){let e=this.columnid;return this.dbtypeid&&(e+=" "+this.dbtypeid),this.dbsize&&(e+="("+this.dbsize,this.dbprecision&&(e+=","+this.dbprecision),e+=")"),this.primarykey&&(e+=" PRIMARY KEY"),this.notnull&&(e+=" NOT NULL"),e},S.CreateTable=function(e){return Object.assign(this,e)},S.CreateTable.prototype.toString=function(){let e=`CREATE${this.temporary?" TEMPORARY":""}${this.view?" VIEW":` ${this.class?"CLASS":"TABLE"}`}${this.ifnotexists?" IF NOT EXISTS":""} ${this.table.toString()}`;return this.viewcolumns&&(e+=`(${this.viewcolumns.map(n=>n.toString()).join(",")})`),this.as?e+=` AS ${this.as}`:e+=` (${this.columns.map(n=>n.toString()).join(",")})`,this.view&&this.select&&(e+=` AS ${this.select.toString()}`),e},S.CreateTable.prototype.execute=function(e,n,t){var r=c.databases[this.table.databaseid||e],i=this.table.tableid;if(!i)throw new Error("Table name is not defined");var s=this.columns,a=this.constraints||[];if(this.ifnotexists&&r.tables[i])return t?t(0):0;if(r.tables[i])throw new Error("Can not create table '"+i+"', because it already exists in the database '"+r.databaseid+"'");var o=r.tables[i]=new c.Table;this.class&&(o.isclass=true);var f=[],m=[];if(s&&s.forEach(function(h){var g=h.dbtypeid;c.fn[g]||(g=g.toUpperCase()),["SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(g)>-1&&(h.identity={value:1,step:1});var A={columnid:h.columnid,dbtypeid:g,dbsize:h.dbsize,dbprecision:h.dbprecision,notnull:h.notnull,identity:h.identity};if(h.identity&&(o.identities[h.columnid]={value:+h.identity.value,step:+h.identity.step}),h.check&&o.checks.push({id:h.check.constrantid,fn:new Function("r,params,alasql","var y;return "+h.check.expression.toJS("r",""))}),h.default&&f.push(JSON.stringify(""+h.columnid)+":"+h.default.toJS("r","")),h.primarykey){var v=o.pk={};v.columns=[h.columnid],v.onrightfns=`r[${JSON.stringify(h.columnid)}]`,v.onrightfn=new Function("r","var y;return "+v.onrightfns),v.hh=d3(v.onrightfns),o.uniqs[v.hh]={};}if(h.unique){var T={};o.uk=o.uk||[],o.uk.push(T),T.columns=[h.columnid],T.onrightfns=`r[${JSON.stringify(h.columnid)}]`,T.onrightfn=new Function("r","var y;return "+T.onrightfns),T.hh=d3(T.onrightfns),o.uniqs[T.hh]={};}if(h.foreignkey){var O=h.foreignkey.table,b=c.databases[O.databaseid||e].tables[O.tableid];if(typeof O.columnid>"u")if(b.pk.columns&&b.pk.columns.length>0)O.columnid=b.pk.columns[0];else throw new Error("FOREIGN KEY allowed only to tables with PRIMARY KEYs");A.foreignkey={tableid:O.tableid,columnid:O.columnid};var C1=function(C){var a1={},r1=C[h.columnid];if(r1!=null&&!(typeof r1=="number"&&isNaN(r1))){a1[O.columnid]=r1;var j=b.pk.onrightfn(a1);if(!b.uniqs[b.pk.hh][j])throw new Error('Foreign key "'+r1+'" not found in table "'+O.tableid+'"')}return true};o.checks.push({fn:C1,fk:true});}h.onupdate&&m.push(`r[${JSON.stringify(h.columnid)}]=`+h.onupdate.toJS("r","")),o.columns.push(A),o.xcolumns[A.columnid]=A;}),o.defaultfns=f.join(","),o.onupdatefns=m.join(";"),a.forEach(function(h){var g;if(h.type==="PRIMARY KEY"){if(o.pk)throw new Error("Primary key already exists");var A=o.pk={};A.columns=h.columns,A.onrightfns=A.columns.map(function(b){return `r[${JSON.stringify(b)}]`}).join("+'`'+"),A.onrightfn=new Function("r","var y;return "+A.onrightfns),A.hh=d3(A.onrightfns),o.uniqs[A.hh]={},A.columns.forEach(function(b){o.xcolumns[b]&&(o.xcolumns[b].primarykey=true);});}else if(h.type==="CHECK")g=new Function("r,params,alasql","var y;return "+h.expression.toJS("r",""));else if(h.type==="UNIQUE"){var v={};o.uk=o.uk||[],o.uk.push(v),v.columns=h.columns,v.onrightfns=v.columns.map(function(b){return b.expression.toJS("r","")}).join("+'`'+"),v.onrightfn=new Function("r","var y;return "+v.onrightfns),v.hh=d3(v.onrightfns),o.uniqs[v.hh]={};}else if(h.type==="FOREIGN KEY"){var T=h.fktable;h.fkcolumns&&h.fkcolumns.length>0&&(T.fkcolumns=h.fkcolumns);var O=c.databases[T.databaseid||e].tables[T.tableid];if(typeof T.fkcolumns>"u"&&(T.fkcolumns=O.pk.columns),T.columns=h.columns,T.fkcolumns.length>T.columns.length)throw new Error("Invalid foreign key on table "+o.tableid);T.columns.forEach(function(b,C1){o.xcolumns[b]&&(o.xcolumns[b].foreignkey={tableid:T.tableid,columnid:T.fkcolumns[C1],constraintid:h.constraintid});}),g=function(b){var C1={};if(T.fkcolumns.forEach(function(j,i1){var k1=b[T.columns[i1]];k1!=null&&!(typeof k1=="number"&&isNaN(k1))&&(C1[j]=k1);}),Object.keys(C1).length===0)return true;if(Object.keys(C1).length!==T.columns.length)throw new Error("Invalid foreign key on table "+o.tableid);var C=c.databases[T.databaseid||e].tables[T.tableid],a1=C.pk.onrightfn(C1);if(!C.uniqs[C.pk.hh][a1]){var r1=T.columns.map(function(j){return b[j]});throw new Error('Foreign key "'+r1.join(", ")+'" not found in table "'+T.tableid+'"')}return true};}g&&o.checks.push({fn:g,id:h.constraintid,fk:h.type==="FOREIGN KEY"});}),this.view&&this.viewcolumns){var E=this;this.viewcolumns.forEach(function(h,g){E.select.columns[g].as=h.columnid;});}if(this.view&&this.select&&(o.view=true,o.viewSelect=this.select,o.viewDatabaseid=this.table.databaseid||e),r.engineid)return c.engines[r.engineid].createTable(this.table.databaseid||e,i,this.ifnotexists,t);o.insert=function(h,g,A){var v=c.inserted;c.inserted=[h];var T=this;g&&A&&(A=false);var O=false,b=false;for(var C1 in T.beforeinsert){var C=T.beforeinsert[C1];C&&c.executeTrigger(C,e,h)===false&&(b=b||true);}if(!b){var a1=false;for(C1 in T.insteadofinsert)a1=true,C=T.insteadofinsert[C1],C&&c.executeTrigger(C,e,h);if(!a1){for(var r1 in T.identities){var j=T.identities[r1];(typeof h[r1]>"u"||h[r1]===null)&&(h[r1]=j.value);}if(T.checks&&T.checks.length>0&&T.checks.forEach(function(X1){if(X1.fn(h,{},c)===false)throw new Error("Violation of CHECK constraint "+(X1.id||""))}),T.columns.forEach(function(X1){if(X1.notnull&&typeof h[X1.columnid]>"u")throw new Error("Wrong NULL value in NOT NULL column "+X1.columnid)}),T.pk){var i1=T.pk,k1=i1.onrightfn(h);if(typeof T.uniqs[i1.hh][k1]<"u")if(g)O=T.uniqs[i1.hh][k1];else {if(A)return c.inserted=v,false;throw new Error("Cannot insert record, because it already exists in primary key index")}}if(T.uk&&T.uk.length)for(var W1=0;W1<T.uk.length;W1++){var z1=T.uk[W1],R=z1.onrightfn(h);if(typeof T.uniqs[z1.hh][R]<"u")if(g)O=T.uniqs[z1.hh][R];else {if(A)return c.inserted=v,false;throw new Error("Cannot insert record, because it already exists in unique index")}}if(O)T.update(function(X1){for(var Se in h)X1[Se]=h[Se];},T.data.indexOf(O),n);else {T.data.push(h);for(var r1 in T.identities){var j=T.identities[r1];typeof h[r1]<"u"&&h[r1]!==null&&+h[r1]>=j.value?j.value=+h[r1]+j.step:j.value+=j.step;}if(T.pk){var i1=T.pk,k1=i1.onrightfn(h);T.uniqs[i1.hh][k1]=h;}if(T.uk&&T.uk.length&&T.uk.forEach(function(X1){var Se=X1.onrightfn(h);T.uniqs[X1.hh][Se]=h;}),T.inddefs)for(var M1 in T.inddefs){var ee=T.inddefs[M1],_1=ee.hh;if(T.indices[_1]){var k1=new Function("r,params,alasql","return "+ee.rightfns)(h,n,c);T.indices[_1][k1]||(T.indices[_1][k1]=[]),T.indices[_1][k1].push(h);}}}for(var C1 in T.afterinsert){var C=T.afterinsert[C1];C&&c.executeTrigger(C,e,h);}c.inserted=v;}}},o.delete=function(h){var g=this,A=g.data[h],v=false;for(var T in g.beforedelete){var O=g.beforedelete[T];O&&c.executeTrigger(O,e,A)===false&&(v=v||true);}if(v)return false;var b=false;for(var T in g.insteadofdelete){b=true;var O=g.insteadofdelete[T];O&&c.executeTrigger(O,e,A);}if(!b){if(this.pk){var C1=this.pk,C=C1.onrightfn(A);if(typeof this.uniqs[C1.hh][C]>"u")throw new Error("Something wrong with primary key index on table");this.uniqs[C1.hh][C]=void 0;}g.uk&&g.uk.length&&g.uk.forEach(function(a1){var r1=a1.onrightfn(A);if(typeof g.uniqs[a1.hh][r1]>"u")throw new Error("Something wrong with unique index on table");g.uniqs[a1.hh][r1]=void 0;});}},o.deleteall=function(){this.data.length=0,this.pk&&(this.uniqs[this.pk.hh]={}),o.uk&&o.uk.length&&o.uk.forEach(function(h){o.uniqs[h.hh]={};});},o.update=function(h,g,A){var v=N3(this.data[g]),T;if(this.pk&&(T=this.pk,T.pkaddr=T.onrightfn(v,A),typeof this.uniqs[T.hh][T.pkaddr]>"u")){this.uniqs[T.hh]={};for(var O=0;O<this.data.length;O++){var b=T.onrightfn(this.data[O]);this.uniqs[T.hh][b]=this.data[O];}T.pkaddr=T.onrightfn(v,A);}o.uk&&o.uk.length&&o.uk.forEach(function(j){if(j.ukaddr=j.onrightfn(v),typeof o.uniqs[j.hh][j.ukaddr]>"u"){o.uniqs[j.hh]={};for(var i1=0;i1<o.data.length;i1++){var k1=j.onrightfn(o.data[i1]);o.uniqs[j.hh][k1]=o.data[i1];}j.ukaddr=j.onrightfn(v);}}),h(v,A,c);var C1=false;for(var C in o.beforeupdate){var a1=o.beforeupdate[C];a1&&c.executeTrigger(a1,e,this.data[g],v)===false&&(C1=C1||true);}if(C1)return false;var r1=false;for(var C in o.insteadofupdate){r1=true;var a1=o.insteadofupdate[C];a1&&c.executeTrigger(a1,e,this.data[g],v);}if(!r1){if(o.checks&&o.checks.length>0&&o.checks.forEach(function(j){if(j.fn(v,A,c)===false)throw new Error("Violation of CHECK constraint "+(j.id||""))}),o.columns.forEach(function(j){if(j.notnull&&typeof v[j.columnid]>"u")throw new Error("Wrong NULL value in NOT NULL column "+j.columnid)}),this.pk&&(T.newpkaddr=T.onrightfn(v),typeof this.uniqs[T.hh][T.newpkaddr]<"u"&&T.newpkaddr!==T.pkaddr))throw new Error("Record already exists");o.uk&&o.uk.length&&o.uk.forEach(function(j){if(j.newukaddr=j.onrightfn(v),typeof o.uniqs[j.hh][j.newukaddr]<"u"&&j.newukaddr!==j.ukaddr)throw new Error("Record already exists")}),this.pk&&(this.uniqs[T.hh][T.pkaddr]=void 0,this.uniqs[T.hh][T.newpkaddr]=v),o.uk&&o.uk.length&&o.uk.forEach(function(j){o.uniqs[j.hh][j.ukaddr]=void 0,o.uniqs[j.hh][j.newukaddr]=v;}),this.data[g]=v;for(var C in o.afterupdate){var a1=o.afterupdate[C];a1&&c.executeTrigger(a1,e,this.data[g],v);}}};var p;return c.options.nocount||(p=1),t&&(p=t(p)),p},c.fn.Date=Object,c.fn.Date=Date,c.fn.Number=Number,c.fn.String=String,c.fn.Boolean=Boolean,Fe.EXTEND=c.utils.extend,Fe.CHAR=String.fromCharCode.bind(String),Fe.ASCII=function(e){return e.charCodeAt(0)},Fe.COALESCE=function(){for(var e=0;e<arguments.length;e++)if(arguments[e]!==null&&!(typeof arguments[e]>"u")&&!(typeof arguments[e]=="number"&&isNaN(arguments[e])))return arguments[e]},Fe.USER=function(){return "alasql"},Fe.OBJECT_ID=function(e){return !!c.tables[e]},Fe.DATE=function(e){return !isNaN(e)&&e.length===8?new Date(+e.substr(0,4),+e.substr(4,2)-1,+e.substr(6,2)):s3(e)},Fe.NOW=function(){if(c.options.dateAsString){var e=new Date,n=e.getFullYear()+"-"+("0"+(e.getMonth()+1)).substr(-2)+"-"+("0"+e.getDate()).substr(-2);return n+=" "+("0"+e.getHours()).substr(-2)+":"+("0"+e.getMinutes()).substr(-2)+":"+("0"+e.getSeconds()).substr(-2),n+="."+("00"+e.getMilliseconds()).substr(-3),n}return new Date},Fe.GETDATE=Fe.NOW,Fe.CURRENT_TIMESTAMP=Fe.NOW,Fe.CURDATE=Fe.CURRENT_DATE=function(){var e=new Date;if(e.setHours(0,0,0,0),c.options.dateAsString){var n=e.getFullYear()+"-"+("0"+(e.getMonth()+1)).substr(-2)+"-"+("0"+e.getDate()).substr(-2);return n}return e},Fe.SECOND=function(n){var n=s3(n);return n.getSeconds()},Fe.MINUTE=function(n){var n=s3(n);return n.getMinutes()},Fe.HOUR=function(n){var n=s3(n);return n.getHours()},Fe.DAYOFWEEK=Fe.WEEKDAY=function(n){var n=s3(n);return n.getDay()},Fe.DAY=Fe.DAYOFMONTH=function(n){var n=s3(n);return n.getDate()},Fe.MONTH=function(n){var n=s3(n);return n.getMonth()+1},Fe.YEAR=function(n){var n=s3(n);return n.getFullYear()};var rn={year:1e3*3600*24*365,quarter:1e3*3600*24*365/4,month:1e3*3600*24*30,week:1e3*3600*24*7,day:1e3*3600*24,dayofyear:1e3*3600*24,weekday:1e3*3600*24,hour:1e3*3600,minute:1e3*60,second:1e3,millisecond:1,microsecond:.001};c.stdfn.DATEDIFF=function(e,n,t){var r=s3(t).getTime()-s3(n).getTime();return r/rn[e.toLowerCase()]|0},c.stdfn.DATEADD=function(i,n,t){var r=s3(t),i=i.toLowerCase();switch(i){case "year":r.setFullYear(r.getFullYear()+n);break;case "quarter":r.setMonth(r.getMonth()+n*3);break;case "month":r.setMonth(r.getMonth()+n);break;default:r=new Date(r.getTime()+n*rn[i]);break}return r},c.stdfn.INTERVAL=function(e,n){return e*rn[n.toLowerCase()]},c.stdfn.DATE_ADD=c.stdfn.ADDDATE=function(e,n){var t=s3(e).getTime()+n;return new Date(t)},c.stdfn.DATE_SUB=c.stdfn.SUBDATE=function(e,n){var t=s3(e).getTime()-n;return new Date(t)};var $s=/^\d{4}\.\d{2}\.\d{2} \d{2}:\d{2}:\d{2}/;function s3(e){return typeof e=="string"&&$s.test(e)&&(e=e.replace(".","-").replace(".","-")),new Date(e)}S.DropTable=function(e){return Object.assign(this,e)},S.DropTable.prototype.toString=function(){var e="DROP ";return this.view?e+="VIEW":e+="TABLE",this.ifexists&&(e+=" IF EXISTS"),e+=" "+this.tables.toString(),e},S.DropTable.prototype.execute=function(e,n,t){var r=this.ifexists,i=0,s=0,a=this.tables.length;return this.tables.forEach(function(o){var f=c.databases[o.databaseid||e],m=o.tableid;if(!r||r&&f.tables[m]){if(f.tables[m])f.engineid?c.engines[f.engineid].dropTable(o.databaseid||e,m,r,function(E){delete f.tables[m],i+=E,s++,s==a&&t&&t(i);}):(delete f.tables[m],i++,s++,s==a&&t&&t(i));else if(!c.options.dropifnotexists)throw new Error(`Can not drop table ${JSON.stringify(o.tableid)} because it does not exist in the database.`)}else s++,s==a&&t&&t(i);}),i},S.TruncateTable=function(e){return Object.assign(this,e)},S.TruncateTable.prototype.toString=function(){var e="TRUNCATE TABLE";return e+=" "+this.table.toString(),e},S.TruncateTable.prototype.execute=function(e,n,t){var r=c.databases[this.table.databaseid||e],i=this.table.tableid;if(r.engineid)return c.engines[r.engineid].truncateTable(this.table.databaseid||e,i,this.ifexists,t);if(r.tables[i])r.tables[i].data=[];else throw new Error("Cannot truncate table becaues it does not exist");return t?t(0):0},S.CreateVertex=function(e){return Object.assign(this,e)},S.CreateVertex.prototype.toString=function(){var e="CREATE VERTEX ";return this.class&&(e+=this.class+" "),this.sharp&&(e+="#"+this.sharp+" "),this.sets?e+=this.sets.toString():this.content?e+=this.content.toString():this.select&&(e+=this.select.toString()),e},S.CreateVertex.prototype.toJS=function(e){var n="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return n},S.CreateVertex.prototype.compile=function(e){var n=e,t=this.sharp;if(typeof this.name<"u")var r="x.name="+this.name.toJS(),i=new Function("x",r);if(this.sets&&this.sets.length>0)var r=this.sets.map(function(f){return `x[${JSON.stringify(f.column.columnid)}]=`+f.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",r);var a=function(o,f){var m,E=c.databases[n],p;typeof t<"u"?p=t:p=E.counter++;var h={$id:p,$node:"VERTEX"};return E.objects[h.$id]=h,m=h,i&&i(h),s&&s(h,o,c),f&&(m=f(m)),m};return a},S.CreateEdge=function(e){return Object.assign(this,e)},S.CreateEdge.prototype.toString=function(){var e="CREATE EDGE ";return this.class&&(e+=this.class+" "),e},S.CreateEdge.prototype.toJS=function(e){var n="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return n},S.CreateEdge.prototype.compile=function(e){var n=e,t=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if(typeof this.name<"u")var i="x.name="+this.name.toJS(),s=new Function("x",i);if(this.sets&&this.sets.length>0)var i=this.sets.map(function(m){return `x[${JSON.stringify(m.column.columnid)}]=`+m.expression.toJS("x","")}).join(";"),a=new Function("x,params,alasql","var y;"+i);return (f,m)=>{let E=0,p=c.databases[n],h={$id:p.counter++,$node:"EDGE"},g=t(f,c),A=r(f,c);return h.$in=[g.$id],h.$out=[A.$id],g.$out=g.$out||[],g.$out.push(h.$id),A.$in=A.$in||[],A.$in.push(h.$id),p.objects[h.$id]=h,E=h,s?.(h),a?.(h,f,c),m?m(E):E}},S.CreateGraph=function(e){return Object.assign(this,e)},S.CreateGraph.prototype.toString=function(){var e="CREATE GRAPH ";return this.class&&(e+=this.class+" "),e},S.CreateGraph.prototype.execute=function(e,n,t){var r=[];return this.from&&c.from[this.from.funcid]&&(this.graph=c.from[this.from.funcid.toUpperCase()]),this.graph.forEach(a=>{if(!a.source)s(a);else {let o={};a.as!==void 0&&(c.vars[a.as]=o),a.prop!==void 0&&(o.name=a.prop),a.sharp!==void 0&&(o.$id=a.sharp),a.name!==void 0&&(o.name=a.name),a.class!==void 0&&(o.$class=a.class);let f=c.databases[e];o.$id=o.$id!==void 0?o.$id:f.counter++,o.$node="EDGE",a.json!==void 0&&Object.assign(o,new Function("params, alasql",`return ${a.json.toJS()}`)(n,c));const m=(h,g)=>{let A,v;if(h.vars)v=c.vars[h.vars],A=typeof v=="object"?v:f.objects[v];else {let T=h.sharp||h.prop;A=f.objects[T],A===void 0&&c.options.autovertex&&(h.prop||h.name)&&(A=i(h.prop||h.name)||s(h));}return g&&A&&typeof A.$out>"u"&&(A.$out=[]),!g&&A&&typeof A.$in>"u"&&(A.$in=[]),A};let E=m(a.source,true),p=m(a.target,false);if(o.$in=[E.$id],o.$out=[p.$id],E.$out.push(o.$id),p.$in.push(o.$id),f.objects[o.$id]=o,o.$class!==void 0){let h=c.databases[e].tables[o.$class];if(h===void 0)throw new Error("No such class. Please use CREATE CLASS");h.data.push(o);}r.push(o.$id);}}),t&&(r=t(r)),r;function i(a){var o=c.databases[c.useid].objects;for(var f in o)if(o[f].name===a)return o[f]}function s(a){var o={};typeof a.as<"u"&&(c.vars[a.as]=o),typeof a.prop<"u"&&(o.$id=a.prop,o.name=a.prop),typeof a.sharp<"u"&&(o.$id=a.sharp),typeof a.name<"u"&&(o.name=a.name),typeof a.class<"u"&&(o.$class=a.class);var f=c.databases[e];if(typeof o.$id>"u"&&(o.$id=f.counter++),o.$node="VERTEX",typeof a.json<"u"&&Be(o,new Function("params,alasql","var y;return "+a.json.toJS())(n,c)),f.objects[o.$id]=o,typeof o.$class<"u"){if(typeof c.databases[e].tables[o.$class]>"u")throw new Error("No such class. Pleace use CREATE CLASS");c.databases[e].tables[o.$class].data.push(o);}return r.push(o.$id),o}},S.CreateGraph.prototype.compile1=function(e){const n=e,t=new Function("params, alasql",`return ${this.from.toJS()}`),r=new Function("params, alasql",`return ${this.to.toJS()}`);let i,s;if(this.name!==void 0){const o=`x.name = ${this.name.toJS()}`;i=new Function("x",o);}if(this.sets&&this.sets.length>0){const o=this.sets.map(f=>`x[${JSON.stringify(f.column.columnid)}] = ${f.expression.toJS("x","")}`).join(";");s=new Function("x, params, alasql",`var y; ${o}`);}return (o,f)=>{let m=0;const E=c.databases[n],p={$id:E.counter++,$node:"EDGE"},h=t(o,c),g=r(o,c);return p.$in=[h.$id],p.$out=[g.$id],h.$out=h.$out||[],h.$out.push(p.$id),g.$in=g.$in||[],g.$in.push(p.$id),E.objects[p.$id]=p,m=p,i&&i(p),s&&s(p,o,c),f&&(m=f(m)),m}},S.AlterTable=function(e){return Object.assign(this,e)},S.AlterTable.prototype.toString=function(){let e="ALTER TABLE "+this.table.toString();return this.renameto&&(e+=" RENAME TO "+this.renameto),e},S.AlterTable.prototype.execute=function(e,n,t){let r=c.databases[e];if(r.dbversion=Date.now(),this.renameto){var i=this.table.tableid,s=this.renameto,a=1;if(r.tables[s])throw new Error(`Can not rename a table "${i}" to "${s}" because the table with this name already exists`);if(s===i)throw new Error(`Can not rename a table "${i}" to itself`);return r.tables[s]=r.tables[i],delete r.tables[i],a=1,t&&t(a),a}if(this.addcolumn){r=c.databases[this.table.databaseid||e],r.dbversion++;var o=this.table.tableid,f=r.tables[o],m=this.addcolumn.columnid;if(f.xcolumns[m])throw new Error(`Cannot add column "${m}" because it already exists in table "${o}"`);var E={columnid:m,dbtypeid:this.addcolumn.dbtypeid,dbsize:this.dbsize,dbprecision:this.dbprecision,dbenum:this.dbenum,defaultfns:null},p=function(){};f.columns.push(E),f.xcolumns[m]=E;for(let O=0,b=f.data.length;O<b;O++)f.data[O][m]=p();return t?t(1):1}if(this.modifycolumn){let O=c.databases[this.table.databaseid||e];O.dbversion++;var o=this.table.tableid,f=O.tables[o],m=this.modifycolumn.columnid;if(!f.xcolumns[m])throw new Error(`Cannot modify column "${m}" because it was not found in table "${o}"`);return E=f.xcolumns[m],E.dbtypeid=this.dbtypeid,E.dbsize=this.dbsize,E.dbprecision=this.dbprecision,E.dbenum=this.dbenum,t?t(1):1}if(this.renamecolumn){let O=c.databases[this.table.databaseid||e];O.dbversion++;var o=this.table.tableid,f=O.tables[o],m=this.renamecolumn,h=this.to,E;if(!f.xcolumns[m])throw new Error('Column "'+m+'" is not found in the table "'+o+'"');if(f.xcolumns[h])throw new Error('Column "'+h+'" already exists in the table "'+o+'"');if(m!=h){for(var g=0;g<f.columns.length;g++)f.columns[g].columnid==m&&(f.columns[g].columnid=h);f.xcolumns[h]=f.xcolumns[m],delete f.xcolumns[m];for(var A=0,v=f.data.length;A<v;A++)f.data[A][h]=f.data[A][m],delete f.data[A][m];return f.data.length}return t?t(0):0}if(this.dropcolumn){let O=c.databases[this.table.databaseid||e];O.dbversion++;for(var o=this.table.tableid,f=O.tables[o],m=this.dropcolumn,T=false,g=0;g<f.columns.length;g++)if(f.columns[g].columnid==m){T=true,f.columns.splice(g,1);break}if(!T)throw new Error(`Cannot drop column "${m}" because it was not found in the table ${o}"`);for(delete f.xcolumns[m],A=0,v=f.data.length;A<v;A++)delete f.data[A][m];return t?t(f.data.length):f.data.length}throw Error("Unknown ALTER TABLE method")},S.CreateIndex=function(e){return Object.assign(this,e)},S.CreateIndex.prototype.toString=function(){var e="CREATE";return this.unique&&(e+=" UNIQUE"),e+=" INDEX "+this.indexid+" ON "+this.table.toString(),e+="("+this.columns.toString()+")",e},S.CreateIndex.prototype.execute=function(e,n,t){var r=c.databases[this.table.databaseid||e],i=this.table.tableid,s=r.tables[i],a=this.indexid;r.indices[a]=i;var o=this.columns.map(function(T){return T.expression.toJS("r","")}).join("+'`'+"),f=new Function("r,params,alasql","return "+o);if(this.unique){var m={};if(s.uk=s.uk||[],s.uk.push(m),m.columns=this.columns,m.onrightfns=o,m.onrightfn=f,m.hh=d3(o),s.uniqdefs[a]={rightfns:o,hh:m.hh},s.uniqs[m.hh]={},s.data.length>0)for(var E=0,p=s.data.length;E<p;E++){var h=f(s.data[E],n,c);if(typeof s.uniqs[m.hh][h]<"u")throw new Error("Cannot create unique index with duplicate values");s.uniqs[m.hh][h]=s.data[E];}}else {var g=d3(o);s.inddefs[a]={rightfns:o,hh:g},s.indices[g]={};var A=s.indices[g]={};if(s.data.length>0)for(var E=0,p=s.data.length;E<p;E++){var h=f(s.data[E],n,c);A[h]||(A[h]=[]),A[h].push(s.data[E]);}}var v=1;return t&&(v=t(v)),v},S.Reindex=function(e){return Object.assign(this,e)},S.Reindex.prototype.toString=function(){var e="REINDEX "+this.indexid;return e},S.Reindex.prototype.execute=function(e,n,t){var r=c.databases[e],i=this.indexid,s=r.indices[i],a=r.tables[s];a.indexColumns();var o=1;return t&&(o=t(o)),o},S.DropIndex=function(e){return Object.assign(this,e)},S.DropIndex.prototype.toString=function(){return "DROP INDEX"+this.indexid},S.DropIndex.prototype.compile=function(e){return function(){return 1}},S.WithSelect=function(e){return Object.assign(this,e)},S.WithSelect.prototype.toString=function(){var e="WITH ";return e+=this.withs.map(function(n){var t="";return n.columns&&(t="("+n.columns.map(function(r){return r.columnid}).join(", ")+")"),(n.recursive?"RECURSIVE ":"")+n.name+t+" AS ("+n.select.toString()+")"}).join(", ")+" ",e+=this.select.toString(),e};function ea(e,n,t){var r=c.options.maxCteIterations||1e3,i=c.databases[n],s=e.name,a=i.tables[s]=new Sr({tableid:s});a.data=[];var o=e.select,f,m;if(o.unionall)f=Object.assign({},o),delete f.unionall,m=o.unionall;else if(o.union)f=Object.assign({},o),delete f.union,m=o.union;else return a.data=o.execute(n,t),e.columns&&(a.data=renameColumns(a.data,e.columns)),a.data;var E;e.columns&&e.columns.length>0&&(E=e.columns.map(function(j){return j.columnid}));var p=new S.Select(f);p.modifier="ALASQL_DETAILS";var h=p.execute(n,t),g=h.columns.map(function(j){return j.columnid});E||(E=g);var A=hi(h.data,g,E);a.data=A.slice();for(var v=A,T=A.slice(),O=0;v.length>0&&O<r;){O++,delete i.tables[s],a=i.tables[s]=new Sr({tableid:s}),a.data=v;var b=new S.Select(m);b.modifier="ALASQL_DETAILS";var C1=b.execute(n,t);if(!C1.data||C1.data.length===0)break;var C=C1.columns.map(function(j){return j.columnid}),a1=hi(C1.data,C,E);v=a1;for(var r1=0;r1<v.length;r1++)T.push(v[r1]);}return a.data=T,T}function hi(e,n,t){return e.map(function(r){for(var i={},s=0;s<t.length&&s<n.length;s++)i[t[s]]=r[n[s]];return i})}S.WithSelect.prototype.execute=function(e,n,t){var r=this,i=[];r.withs.forEach(function(a){if(i.push(c.databases[e].tables[a.name]),a.recursive)ea(a,e,n);else {var o=c.databases[e].tables[a.name]=new Sr({tableid:a.name});o.data=a.select.execute(e,n),a.columns&&(o.data=renameColumns(o.data,a.columns));}});var s=1;return s=this.select.execute(e,n,function(a){return r.withs.forEach(function(o,f){i[f]?c.databases[e].tables[o.name]=i[f]:delete c.databases[e].tables[o.name];}),t&&(a=t(a)),a}),s},S.If=function(e){return Object.assign(this,e)},S.If.prototype.toString=function(){var e="IF ";return e+=this.expression.toString(),e+=" "+this.thenstat.toString(),this.elsestat&&(e+=" ELSE "+this.thenstat.toString()),e},S.If.prototype.execute=function(e,n,t){var r,i=new Function("params,alasql,p","var y;return "+this.expression.toJS("({})","",null)).bind(this);return i(n,c)?r=this.thenstat.execute(e,n,t):this.elsestat?r=this.elsestat.execute(e,n,t):t&&(r=t(r)),r};function di(e){var n=function(){this.message=e;};return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}S.BreakException=di("BREAK"),S.ContinueException=di("CONTINUE"),S.While=function(e){return Object.assign(this,e)},S.While.prototype.toString=function(){var e="WHILE ";return e+=this.expression.toString(),e+=" "+this.loopstat.toString(),e},S.While.prototype.execute=function(e,n,t){var r=this,i=[],s=new Function("params,alasql,p","var y;return "+this.expression.toJS());if(t){var a=false,o=function(m){a?i.push(m):a=true,setTimeout(function(){s(n,c)?r.loopstat.execute(e,n,o):i=t(i);},0);};o();}else for(;s(n,c);)try{var f=r.loopstat.execute(e,n);i.push(f);}catch(m){if(m instanceof S.BreakException)break;if(m instanceof S.ContinueException)continue;throw m}return i},S.Break=function(e){return Object.assign(this,e)},S.Break.prototype.toString=function(){var e="BREAK";return e},S.Break.prototype.execute=function(e,n,t,r){throw new S.BreakException},S.Continue=function(e){return Object.assign(this,e)},S.Continue.prototype.toString=function(){var e="CONTINUE";return e},S.Continue.prototype.execute=function(e,n,t,r){throw new S.ContinueException},S.BeginEnd=function(e){return Object.assign(this,e)},S.BeginEnd.prototype.toString=function(){var e="BEGIN "+this.statements.toString()+" END";return e},S.BeginEnd.prototype.execute=function(e,n,t,r){var i=this,s=[];if(t){let m=function(){i.statements[a].execute(e,n,function(E){if(s.push(E),a++,a<i.statements.length)return m();t&&(s=t(s));});};var a=0;m();}else for(var o=0;o<i.statements.length;o++){var f=i.statements[o].execute(e,n);s.push(f);}return s},S.Insert=function(e){return Object.assign(this,e)},S.Insert.prototype.toString=function(){var e="INSERT ";if(this.orreplace&&(e+="OR REPLACE "),this.replaceonly&&(e="REPLACE "),this.ignore&&(e+="IGNORE "),e+="INTO "+this.into.toString(),this.columns&&(e+="("+this.columns.toString()+")"),this.values){var n=this.values.map(function(t){return "("+t.toString()+")"});e+=" VALUES "+n.join(",");}return this.select&&(e+=" "+this.select.toString()),this.setcolumns&&(e+=" SET ",e+=this.setcolumns.map(t=>t.toString()).join(", ")),this.output&&(e+=" OUTPUT ",e+=this.output.columns.map(t=>t.toString()).join(", "),this.output.intovar?e+=" INTO "+this.output.method+this.output.intovar:this.output.intotable&&(e+=" INTO "+this.output.intotable.toString(),this.output.intocolumns&&(e+="("+this.output.intocolumns.map(t=>t.toString()).join(", ")+")"))),e},S.Insert.prototype.toJS=function(e,n,t){var r="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return r},S.Insert.prototype.compile=function(e){var n=this;if(n.into instanceof S.ParamValue)return S.compileParamValue(n.into.param,"INSERT",true,e,n,"into");e=n.into.databaseid||e;var t=c.databases[e],r=n.into.tableid,i=t.tables[r];if(!i)throw "Table '"+r+"' could not be found";var s=function(a1,r1,j){return `The number of values (${a1}) does not match the number of ${j} (${r1}). If using a subquery, use INSERT INTO ... SELECT instead of INSERT INTO ... VALUES (SELECT ...)`},o="",a="",o="db.tables['"+r+"'].dirty=true;",f="var a,aa=[],x;",m;if(this.values){this.exists&&(this.existsfn=this.exists.map(function(a1){var r1=a1.compile(e);return r1.query.modifier="RECORDSET",r1})),this.queries&&(this.queriesfn=this.queries.map(function(a1){var r1=a1.compile(e);return r1.query.modifier="RECORDSET",r1})),n.values.forEach(function(a1){var r1=[];if(n.columns){if(a1.length!==n.columns.length)throw new Error(s(a1.length,n.columns.length,"columns"));n.columns.forEach(function(j,i1){var k1="'"+j.columnid+"':";i.xcolumns&&i.xcolumns[j.columnid]?["INT","FLOAT","NUMBER","MONEY"].indexOf(i.xcolumns[j.columnid].dbtypeid)>=0?k1+="(x="+a1[i1].toJS()+",x==undefined?undefined:+x)":c.fn[i.xcolumns[j.columnid].dbtypeid]?(k1+="(new "+i.xcolumns[j.columnid].dbtypeid+"(",k1+=a1[i1].toJS(),k1+="))"):k1+=a1[i1].toJS():k1+=a1[i1].toJS(),r1.push(k1);});}else if(Array.isArray(a1)&&i.columns&&i.columns.length>0){if(a1.length!==i.columns.length)throw new Error(s(a1.length,i.columns.length,"table columns"));i.columns.forEach(function(j,i1){var k1="'"+j.columnid+"':";["INT","FLOAT","NUMBER","MONEY"].indexOf(j.dbtypeid)>=0?k1+="+"+a1[i1].toJS():c.fn[j.dbtypeid]?(k1+="(new "+j.dbtypeid+"(",k1+=a1[i1].toJS(),k1+="))"):k1+=a1[i1].toJS(),r1.push(k1);});}else a=Tr(a1);t.tables[r].defaultfns&&r1.unshift(t.tables[r].defaultfns),a?o+="a="+a+";":o+="a={"+r1.join(",")+"};",t.tables[r].isclass&&(o+="var db=alasql.databases['"+e+"'];",o+='a.$class="'+r+'";',o+="a.$id=db.counter++;",o+="db.objects[a.$id]=a;"),t.tables[r].insert?(o+="var db=alasql.databases['"+e+"'];",o+="var inserted=db.tables['"+r+"'].insert(a,"+(n.orreplace?"true":"false")+","+(n.ignore?"true":"false")+");",n.ignore&&(o+="if(inserted!==false){"),(n.output||n.ignore)&&(o+="aa.push(a);"),n.ignore&&(o+="}")):o+="aa.push(a);";}),m=f+o,t.tables[r].insert||(o+="alasql.databases['"+e+"'].tables['"+r+"'].data=alasql.databases['"+e+"'].tables['"+r+"'].data.concat(aa);"),n.output?(o+="var output = [];",o+="for(var i=0;i<aa.length;i++){",o+="var r = aa[i];",o+="var outputRow = {};",n.output.columns.forEach(function(a1){if(a1.columnid==="*")o+="for(var key in r){ outputRow[key] = r[key]; }";else {var r1=a1.as||a1.columnid;o+="outputRow['"+r1+"']=r['"+a1.columnid+"'];";}}),o+="output.push(outputRow);",o+="}",o+="return output;"):t.tables[r].insert&&t.tables[r].isclass?o+="return a.$id;":n.ignore?o+="return aa.length;":o+="return "+n.values.length;var E=new Function("db, params, alasql","var y;"+f+o).bind(this);}else if(this.select){this.select.modifier="RECORDSET",this.queries&&(this.select.queries=this.queries);var p=this.select.compile(e);if(t.engineid&&c.engines[t.engineid].intoTable){var h=function(a1,r1){var j=p(a1),i1=c.engines[t.engineid].intoTable(t.databaseid,r,j.data,null,r1);return i1};return h}else var g="var defaults={"+i.defaultfns+"};for(var key in defaults){if(!(key in r)){r[key]=defaults[key]}}return r",A=new Function("r,db,params,alasql",g),E=function(r1,j,i1){var k1=p(j).data,W1=[];if(r1.tables[r].insert)for(var z1=0,R=k1.length;z1<R;z1++){var M1=N3(k1[z1]);A(M1,r1,j,i1),r1.tables[r].insert(M1,n.orreplace,n.ignore),W1.push(M1);}else W1=k1,r1.tables[r].data=r1.tables[r].data.concat(k1);if(n.output){for(var ee=[],z1=0;z1<W1.length;z1++){var M1=W1[z1],_1={};n.output.columns.forEach(function(Ie){if(Ie.columnid==="*")for(var Xe in M1)_1[Xe]=M1[Xe];else {var Ve=Ie.as||Ie.columnid;_1[Ve]=M1[Ie.columnid];}}),ee.push(_1);}return ee}if(!i1.options.nocount)return k1.length};}else if(this.default)var v="db.tables['"+r+"'].data.push({"+i.defaultfns+"});return 1;",E=new Function("db,params,alasql",v);else if(this.setcolumns){var T=[],O=[];this.setcolumns.forEach(function(a1){T.push(a1.column),O.push(a1.expression);});var b=this.columns,C1=this.values;this.columns=T,this.values=[O];try{var C=S.Insert.prototype.compile.call(this,e);return C}finally{this.columns=b,this.values=C1;}}else throw new Error("Wrong INSERT parameters");if(t.engineid&&c.engines[t.engineid].intoTable&&c.options.autocommit)var h=function(r1,j){var i1=new Function("db,params,alasql","var y;"+m+"return aa;")(t,r1,c),k1=c.engines[t.engineid].intoTable(t.databaseid,r,i1,null,j);return k1};else var h=function(r1,j){var i1=c.databases[e];c.options.autocommit&&i1.engineid&&c.engines[i1.engineid].loadTableData(e,r);var k1=E(i1,r1,c);return c.options.autocommit&&i1.engineid&&c.engines[i1.engineid].saveTableData(e,r),c.options.nocount&&(k1=void 0),j&&j(k1),k1};return h},S.Insert.prototype.execute=function(e,n,t){return this.compile(e)(n,t)},S.CreateTrigger=function(e){return Object.assign(this,e)},S.CreateTrigger.prototype.toString=function(){var e="CREATE TRIGGER "+this.trigger+" ";return this.when&&(e+=this.when+" "),e+=this.action+" ON ",this.table.databaseid&&(e+=this.table.databaseid+"."),e+=this.table.tableid+" ",e+=this.statement.toString(),e};const pi=["beforeinsert","afterinsert","insteadofinsert","beforedelete","afterdelete","insteadofdelete","beforeupdate","afterupdate","insteadofupdate"];S.CreateTrigger.prototype.execute=function(e,n,t){let r=1;const i=this.trigger;e=this.table.databaseid||e;const s=c.databases[e],{tableid:a}=this.table,o={action:this.action,when:this.when,statement:this.statement,funcid:this.funcid,tableid:a};s.triggers[i]=o;const f=`${this.when}${this.action}`.toLowerCase();return pi.includes(f)&&(s.tables[a]=s.tables[a]||{},s.tables[a][f]=s.tables[a][f]||{},s.tables[a][f][i]=o),t&&(r=t(r)),r},S.DropTrigger=function(e){return Object.assign(this,e)},S.DropTrigger.prototype.toString=function(){var e="DROP TRIGGER "+this.trigger;return e},S.DropTrigger.prototype.execute=function(e,n,t){let r=0;const i=c.databases[e],s=this.trigger,a=i.triggers[s];if(a){const{tableid:o}=a;if(o)r=1,pi.forEach(f=>{delete i.tables[o][f][s];}),delete i.triggers[s];else throw new Error("Trigger Table not found")}else throw new Error("Trigger not found");return t&&(r=t(r)),r},c.executeTrigger=function(e,n,...t){if(e){if(e.funcid)return c.fn[e.funcid](...t);if(e.statement)return e.statement.expression&&e.statement.expression.funcid?c.fn[e.statement.expression.funcid](...t):e.statement.execute(n)}},S.Delete=function(e){return Object.assign(this,e)},S.Delete.prototype.toString=function(){var e="DELETE FROM "+this.table.toString();return this.where&&(e+=" WHERE "+this.where.toString()),this.output&&(e+=" OUTPUT ",e+=this.output.columns.map(n=>n.toString()).join(", "),this.output.intovar?e+=" INTO "+this.output.method+this.output.intovar:this.output.intotable&&(e+=" INTO "+this.output.intotable.toString(),this.output.intocolumns&&(e+="("+this.output.intocolumns.map(n=>n.toString()).join(", ")+")"))),e},S.Delete.prototype.compile=function(e){var n=this;if(this.table instanceof S.ParamValue)return S.compileParamValue(this.table.param,"DELETE",true,e,n,"table");e=this.table.databaseid||e;var t=this.table.tableid,r,i=c.databases[e];if(this.where){this.exists&&(this.existsfn=this.exists.map(function(a){var o=a.compile(e);return o.query.modifier="RECORDSET",o})),this.queries&&(this.queriesfn=this.queries.map(function(a){var o=a.compile(e);return o.query.modifier="RECORDSET",o}));var s=new Function("r,params,alasql","var y;return ("+this.where.toJS("r","")+")").bind(this);r=function(a,o){if(i.engineid&&c.engines[i.engineid].deleteFromTable)return c.engines[i.engineid].deleteFromTable(e,t,s,a,o);c.options.autocommit&&i.engineid&&(i.engineid=="LOCALSTORAGE"||i.engineid=="FILESTORAGE")&&c.engines[i.engineid].loadTableData(e,t);for(var f=i.tables[t],m=f.data.length,E=[],p=[],h=0,g=f.data.length;h<g;h++)s(f.data[h],a,c)?((n.output||f.afterdelete)&&p.push(N3(f.data[h])),f.delete&&f.delete(h,a,c)):E.push(f.data[h]);if(f.data=E,f.afterdelete)for(var h=0;h<p.length;h++)for(var A in f.afterdelete){var v=f.afterdelete[A];v&&c.executeTrigger(v,e,p[h]);}var T=m-f.data.length;if(n.output){for(var O=[],h=0;h<p.length;h++){var b=p[h],C1={};n.output.columns.forEach(function(a1){if(a1.columnid==="*")for(var r1 in b)C1[r1]=b[r1];else {var j=a1.as||a1.columnid;C1[j]=b[a1.columnid];}}),O.push(C1);}T=O;}return c.options.autocommit&&i.engineid&&(i.engineid=="LOCALSTORAGE"||i.engineid=="FILESTORAGE")&&c.engines[i.engineid].saveTableData(e,t),o&&(T=o(T)),T};}else r=function(a,o){c.options.autocommit&&i.engineid&&c.engines[i.engineid].loadTableData(e,t);var f=i.tables[t];f.dirty=true;var m=i.tables[t].data.length,E=[];n.output&&(E=f.data.map(function(O){return N3(O)})),i.tables[t].data.length=0;for(var p in i.tables[t].uniqs)i.tables[t].uniqs[p]={};for(var p in i.tables[t].indices)i.tables[t].indices[p]={};c.options.autocommit&&i.engineid&&c.engines[i.engineid].saveTableData(e,t);var h=m;if(n.output){for(var g=[],A=0;A<E.length;A++){var v=E[A],T={};n.output.columns.forEach(function(O){if(O.columnid==="*")for(var b in v)T[b]=v[b];else {var C1=O.as||O.columnid;T[C1]=v[O.columnid];}}),g.push(T);}h=g;}return o&&o(h),h};return r},S.Delete.prototype.execute=function(e,n,t){return this.compile(e)(n,t)},S.Update=function(e){return Object.assign(this,e)},S.Update.prototype.toString=function(){var e="UPDATE "+this.table.toString();return this.columns&&(e+=" SET "+this.columns.toString()),this.where&&(e+=" WHERE "+this.where.toString()),this.output&&(e+=" OUTPUT ",e+=this.output.columns.map(n=>n.toString()).join(", "),this.output.intovar?e+=" INTO "+this.output.method+this.output.intovar:this.output.intotable&&(e+=" INTO "+this.output.intotable.toString(),this.output.intocolumns&&(e+="("+this.output.intocolumns.map(n=>n.toString()).join(", ")+")"))),e},S.SetColumn=function(e){return Object.assign(this,e)},S.SetColumn.prototype.toString=function(){return this.column.toString()+"="+this.expression.toString()},S.Update.prototype.compile=function(e){var n=this;if(this.table instanceof S.ParamValue)return S.compileParamValue(this.table.param,"UPDATE",false,e,n,"table");e=this.table.databaseid||e;var t=this.table.tableid;if(this.where){this.exists&&(this.existsfn=this.exists.map(function(o){var f=o.compile(e);return f.query.modifier="RECORDSET",f})),this.queries&&(this.queriesfn=this.queries.map(function(o){var f=o.compile(e);return f.query.modifier="RECORDSET",f}));var r=new Function("r,params,alasql","var y;return "+this.where.toJS("r","")).bind(this);}var i=c.databases[e].tables[t].onupdatefns||"";i+=";",this.columns.forEach(function(o){i+="r['"+o.column.columnid+"']="+o.expression.toJS("r","")+";";});var s=new Function("r,params,alasql","var y;"+i),a=function(o,f){var m=c.databases[e];if(m.engineid&&c.engines[m.engineid].updateTable)return c.engines[m.engineid].updateTable(e,t,s,r,o,f);c.options.autocommit&&m.engineid&&c.engines[m.engineid].loadTableData(e,t);var E=m.tables[t];if(!E)throw new Error("Table '"+t+"' not exists");for(var p=0,h=[],g=0,A=E.data.length;g<A;g++)if(!r||r(E.data[g],o,c)){var v=n.output?N3(E.data[g]):null;E.update?E.update(s,g,o):s(E.data[g],o,c),n.output&&h.push({deleted:v,inserted:N3(E.data[g])}),p++;}c.options.autocommit&&m.engineid&&c.engines[m.engineid].saveTableData(e,t);var T=p;if(n.output){for(var O=[],g=0;g<h.length;g++){var b=h[g].deleted,C1=h[g].inserted,C={};n.output.columns.forEach(function(r1){if(r1.columnid==="*")for(var j in C1)C[j]=C1[j];else {var i1=r1.as||r1.columnid;r1.tableid==="DELETED"?C[i1]=b[r1.columnid]:C[i1]=C1[r1.columnid];}}),O.push(C);}T=O;}return f&&f(T),T};return a},S.Update.prototype.execute=function(e,n,t){return this.compile(e)(n,t)},S.Merge=function(e){return Object.assign(this,e)},S.Merge.prototype.toString=function(){let e=`MERGE ${this.into.tableid} `;return this.into.as&&(e+=`AS ${this.into.as} `),e+=`USING ${this.using.tableid} `,this.using.as&&(e+=`AS ${this.using.as} `),e+=`ON ${this.on.toString()} `,this.matches.forEach(n=>{e+="WHEN ",n.matched||(e+="NOT "),e+="MATCHED ",n.bytarget&&(e+="BY TARGET "),n.bysource&&(e+="BY SOURCE "),n.expr&&(e+=`AND ${n.expr.toString()} `),e+="THEN ",n.action.delete&&(e+="DELETE "),n.action.insert&&(e+="INSERT ",n.action.columns&&(e+=`(${n.action.columns.toString()}) `),n.action.values&&(e+=`VALUES (${n.action.values.toString()}) `),n.action.defaultvalues&&(e+="DEFAULT VALUES ")),n.action.update&&(e+="UPDATE ",e+=n.action.update.map(t=>t.toString()).join(", ")+" ");}),e},S.Merge.prototype.execute=function(e,n,t){var r=1;return t&&(r=t(r)),r},S.CreateDatabase=function(e){return Object.assign(this,e)},S.CreateDatabase.prototype.toString=function(){let e="CREATE ";return this.engineid&&(e+=`${this.engineid} `),e+="DATABASE ",this.ifnotexists&&(e+="IF NOT EXISTS "),e+=`${this.databaseid} `,this.args&&this.args.length>0&&(e+=`(${this.args.map(n=>n.toString()).join(", ")}) `),this.as&&(e+=`AS ${this.as}`),e},S.CreateDatabase.prototype.execute=function(e,n,t){if(this.args&&this.args.length>0&&(this.args.map(function(o){return new Function("params,alasql","var y;return "+o.toJS())(n,c)})),this.engineid){var i=c.engines[this.engineid].createDatabase(this.databaseid,this.args,this.ifnotexists,this.as,t);return i}else {var s=this.databaseid;if(c.databases[s])throw new Error("Database '"+s+"' already exists");new c.Database(s);var i=1;return t?t(i):i}},S.AttachDatabase=function(e){return Object.assign(this,e)},S.AttachDatabase.prototype.toString=function(e){let n="ATTACH";return this.engineid&&(n+=` ${this.engineid}`),n+=` DATABASE ${this.databaseid}`,e&&(n+="(",e.length>0&&(n+=e.map(t=>t.toString()).join(", ")),n+=")"),this.as&&(n+=` AS ${this.as}`),n},S.AttachDatabase.prototype.execute=function(e,n,t){if(!c.engines[this.engineid])throw new Error('Engine "'+this.engineid+'" is not defined.');var r=c.engines[this.engineid].attachDatabase(this.databaseid,this.as,this.args,n,t);return r},S.DetachDatabase=function(e){return Object.assign(this,e)},S.DetachDatabase.prototype.toString=function(){var e="DETACH";return e+=" DATABASE "+this.databaseid,e},S.DetachDatabase.prototype.execute=function(e,n,t){if(!c.databases[this.databaseid].engineid)throw new Error('Cannot detach database "'+this.engineid+'", because it was not attached.');var r,i=this.databaseid;if(i===c.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(c.databases[i]){var s=c.databases[i].engineid&&c.databases[i].engineid=="FILESTORAGE",a=c.databases[i].filename||"";delete c.databases[i],s&&(c.databases[i]={},c.databases[i].isDetached=true,c.databases[i].filename=a),i===c.useid&&c.use(),r=1;}else if(this.ifexists)r=0;else throw new Error("Database '"+i+"' does not exist");return t&&t(r),r},S.UseDatabase=function(e){return Object.assign(this,e)},S.UseDatabase.prototype.toString=function(){return "USE DATABASE "+this.databaseid},S.UseDatabase.prototype.execute=function(e,n,t){var r=this.databaseid;if(!c.databases[r])throw new Error("Database '"+r+"' does not exist");c.use(r);var i=1;return t&&t(i),i},S.DropDatabase=function(e){return Object.assign(this,e)},S.DropDatabase.prototype.toString=function(){var e="DROP";return this.ifexists&&(e+=" IF EXISTS"),e+=" DATABASE "+this.databaseid,e},S.DropDatabase.prototype.execute=function(e,n,t){if(this.engineid)return c.engines[this.engineid].dropDatabase(this.databaseid,this.ifexists,t);let r;const i=this.databaseid;if(i===c.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(c.databases[i]){if(c.databases[i].engineid)throw new Error(`Cannot drop database '${i}', because it is attached. Detach it.`);delete c.databases[i],i===c.useid&&c.use(),r=1;}else if(this.ifexists)r=0;else throw new Error(`Database '${i}' does not exist`);return t&&t(r),r},S.Declare=function(e){return Object.assign(this,e)},S.Declare.prototype.toString=function(){let e="DECLARE ";return this.declares&&this.declares.length>0&&(e+=this.declares.map(n=>{let t=`@${n.variable} ${n.dbtypeid}`;return n.dbsize&&(t+=`(${n.dbsize}`,n.dbprecision&&(t+=`,${n.dbprecision}`),t+=")"),n.expression&&(t+=` = ${n.expression.toString()}`),t}).join(",")),e},S.Declare.prototype.execute=function(e,n,t){var r=1,i=this;return i.declares&&i.declares.length>0&&i.declares.forEach(function(s){var a=s.dbtypeid;c.fn[a]||(a=a.toUpperCase()),c.declares[s.variable]={dbtypeid:a,dbsize:s.dbsize,dbprecision:s.dbprecision},s.expression&&(c.vars[s.variable]=new Function("params,alasql","return "+s.expression.toJS("({})","",null)).bind(i)(n,c),c.declares[s.variable]&&(c.vars[s.variable]=c.stdfn.CONVERT(c.vars[s.variable],c.declares[s.variable])));}),t&&(r=t(r)),r},S.ShowDatabases=function(e){return Object.assign(this,e)},S.ShowDatabases.prototype.toString=function(){var e="SHOW DATABASES";return this.like&&(e+="LIKE "+this.like.toString()),e},S.ShowDatabases.prototype.execute=function(e,n,t){if(this.engineid)return c.engines[this.engineid].showDatabases(this.like,t);var r=this,i=[];for(var s in c.databases)i.push({databaseid:s});return r.like&&i&&i.length>0&&(i=i.filter(function(a){return c.utils.like(r.like.value,a.databaseid)})),t&&t(i),i},S.ShowTables=function(e){return Object.assign(this,e)},S.ShowTables.prototype.toString=function(){var e="SHOW TABLES";return this.databaseid&&(e+=" FROM "+this.databaseid),this.like&&(e+=" LIKE "+this.like.toString()),e},S.ShowTables.prototype.execute=function(e,n,t){var r=c.databases[this.databaseid||e],i=this,s=[];for(var a in r.tables)s.push({tableid:a});return i.like&&s&&s.length>0&&(s=s.filter(function(o){return c.utils.like(i.like.value,o.tableid)})),t&&t(s),s},S.ShowColumns=function(e){return Object.assign(this,e)},S.ShowColumns.prototype.toString=function(){var e="SHOW COLUMNS";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},S.ShowColumns.prototype.execute=function(e,n,t){var r=c.databases[this.table.databaseid||this.databaseid||e],i=r.tables[this.table.tableid];if(i&&i.columns){var s=i.columns.map(function(a){return {columnid:a.columnid,dbtypeid:a.dbtypeid,dbsize:a.dbsize}});return t&&t(s),s}else return t&&t([]),[]},S.ShowIndex=function(e){return Object.assign(this,e)},S.ShowIndex.prototype.toString=function(){var e="SHOW INDEX";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},S.ShowIndex.prototype.execute=function(e,n,t){var r=c.databases[this.table.databaseid||this.databaseid||e],i=r.tables[this.table.tableid],s=[];if(i&&i.indices)for(var a in i.indices)s.push({hh:a,len:Object.keys(i.indices[a]).length});return t&&t(s),s},S.ShowCreateTable=function(e){return Object.assign(this,e)},S.ShowCreateTable.prototype.toString=function(){var e="SHOW CREATE TABLE "+this.table.tableid;return this.databaseid&&(e+=" FROM "+this.databaseid),e},S.ShowCreateTable.prototype.execute=function(e){var n=c.databases[this.databaseid||e],t=n.tables[this.table.tableid];if(t){var r="CREATE TABLE "+this.table.tableid+" (",i=[];return t.columns&&(t.columns.forEach(function(s){var a=s.columnid+" "+s.dbtypeid;s.dbsize&&(a+="("+s.dbsize+")"),s.primarykey&&(a+=" PRIMARY KEY"),i.push(a);}),r+=i.join(", ")),r+=")",r}else throw new Error('There is no such table "'+this.table.tableid+'"')},S.SetVariable=function(e){return Object.assign(this,e)},S.SetVariable.prototype.toString=function(){var e="SET ";return typeof this.value<"u"&&(e+=this.variable.toUpperCase()+" "+(this.value?"ON":"OFF")),this.expression&&(e+=this.method+this.variable+" = "+this.expression.toString()),e},S.SetVariable.prototype.execute=function(e,n,t){if(typeof this.value<"u"){let i=this.value;i==="ON"?i=true:i==="OFF"&&(i=false),c.options[this.variable]=i;}else if(this.expression){this.exists&&(this.existsfn=this.exists.map(s=>{let a=s.compile(e);return a.query&&!a.query.modifier&&(a.query.modifier="RECORDSET"),a})),this.queries&&(this.queriesfn=this.queries.map(s=>{let a=s.compile(e);return a.query&&!a.query.modifier&&(a.query.modifier="RECORDSET"),a}));let i=new Function("params, alasql","return "+this.expression.toJS("({})","",null)).bind(this)(n,c);if(c.declares[this.variable]&&(i=c.stdfn.CONVERT(i,c.declares[this.variable])),this.props&&this.props.length>0){let s;this.method==="@"?s=`alasql.vars['${this.variable}']`:s=`params['${this.variable}']`,this.props.forEach(a=>{typeof a=="string"?s+=`['${a}']`:typeof a=="number"?s+=`[${a}]`:s+=`[${a.toJS()}]`;}),new Function("value, params, alasql",`${s} = value`)(i,n,c);}else this.method==="@"?c.vars[this.variable]=i:n[this.variable]=i;}let r=1;return t&&(r=t(r)),r},c.test=function(e,n,t){if(arguments.length===0){c.log(c.con.results);return}var r=Date.now();if(arguments.length===1){t(),c.con.log(Date.now()-r);return}arguments.length===2&&(t=n,n=1);for(var i=0;i<n;i++)t();c.con.results[e]=Date.now()-r;},c.log=function(e,n){var t=c.useid,r=c.options.logtarget;B1.isNode&&(r="console");var i;if(typeof e=="string"?i=c(e,n):i=e,r==="console"||B1.isNode)typeof e=="string"&&c.options.logprompt&&console.log(t+">",e),Array.isArray(i)&&console.table?console.table(i):console.log(M3(i));else {var s;r==="output"?s=document.getElementsByTagName("output")[0]:typeof r=="string"?s=document.getElementById(r):s=r;var a="";if(typeof e=="string"&&c.options.logprompt&&(a+="<pre><code>"+c.pretty(e)+"</code></pre>"),Array.isArray(i))if(i.length===0)a+="<p>[ ]</p>";else if(typeof i[0]!="object"||Array.isArray(i[0]))for(var o=0,f=i.length;o<f;o++)a+="<p>"+nn(i[o])+"</p>";else a+=nn(i);else a+=nn(i);s.innerHTML+=a;}},c.clear=function(){var e=c.options.logtarget;if(B1.isNode||B1.isMeteorServer)console.clear&&console.clear();else {var n;e==="output"?n=document.getElementsByTagName("output")[0]:typeof e=="string"?n=document.getElementById(e):n=e,n.innerHTML="";}},c.write=function(e){var n=c.options.logtarget;if(B1.isNode||B1.isMeteorServer)console.log&&console.log(e);else {var t;n==="output"?t=document.getElementsByTagName("output")[0]:typeof n=="string"?t=document.getElementById(n):t=n,t.innerHTML+=e;}};function nn(e){var n="";if(e===void 0)n+="undefined";else if(Array.isArray(e)){n+="<style>",n+="table {border:1px black solid; border-collapse: collapse; border-spacing: 0px;}",n+="td,th {border:1px black solid; padding-left:5px; padding-right:5px}",n+="th {background-color: #EEE}",n+="</style>",n+="<table>";var t=[];for(var r in e[0])t.push(r);n+="<tr><th>#",t.forEach(function(a){n+="<th>"+a;});for(var i=0,s=e.length;i<s;i++)n+="<tr><th>"+(i+1),t.forEach(function(a){n+="<td> ",e[i][a]==+e[i][a]?(n+='<div style="text-align:right">',typeof e[i][a]>"u"?n+="NULL":n+=e[i][a],n+="</div>"):typeof e[i][a]>"u"?n+="NULL":typeof e[i][a]=="string"?n+=e[i][a]:n+=M3(e[i][a]);});n+="</table>";}else n+="<p>"+M3(e)+"</p>";return n}function sn(e,n,t){if(!(t<=0)){var r=n-e.scrollTop,i=r/t*10;setTimeout(function(){e.scrollTop!==n&&(e.scrollTop=e.scrollTop+i,sn(e,n,t-10));},10);}}c.prompt=function(e,n,t){if(B1.isNode)throw new Error("The prompt not realized for Node.js");var r=0;if(typeof e=="string"&&(e=document.getElementById(e)),typeof n=="string"&&(n=document.getElementById(n)),n.textContent=c.useid,t){c.prompthistory.push(t),r=c.prompthistory.length;try{var i=Date.now();c.log(t),c.write('<p style="color:blue">'+(Date.now()-i)+" ms</p>");}catch(a){c.write("<p>"+c.useid+"> <b>"+t+"</b></p>"),c.write('<p style="color:red">'+a+"<p>");}}var s=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;sn(document.getElementsByTagName("body")[0],s,500),e.onkeydown=function(a){if(a.which===13){var o=e.value,f=c.useid;e.value="",c.prompthistory.push(o),r=c.prompthistory.length;try{var m=Date.now();c.log(o),c.write('<p style="color:blue">'+(Date.now()-m)+" ms</p>");}catch(p){c.write("<p>"+f+"> "+c.pretty(o,false)+"</p>"),c.write('<p style="color:red">'+p+"<p>");}e.focus(),n.textContent=c.useid;var E=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;sn(document.getElementsByTagName("body")[0],E,500);}else a.which===38?(r--,r<0&&(r=0),c.prompthistory[r]&&(e.value=c.prompthistory[r],a.preventDefault())):a.which===40&&(r++,r>=c.prompthistory.length?(r=c.prompthistory.length,e.value=""):c.prompthistory[r]&&(e.value=c.prompthistory[r],a.preventDefault()));};},S.BeginTransaction=function(e){return Object.assign(this,e)},S.BeginTransaction.prototype.toString=function(){return "BEGIN TRANSACTION"},S.BeginTransaction.prototype.execute=function(e,n,t){var r=1;return c.databases[e].engineid?c.engines[c.databases[c.useid].engineid].begin(e,t):(t&&(r=t(r)),r)},S.CommitTransaction=function(e){return Object.assign(this,e)},S.CommitTransaction.prototype.toString=function(){return "COMMIT TRANSACTION"},S.CommitTransaction.prototype.execute=function(e,n,t){var r=1;return c.databases[e].engineid?c.engines[c.databases[c.useid].engineid].commit(e,t):(t&&(r=t(r)),r)},S.RollbackTransaction=function(e){return Object.assign(this,e)},S.RollbackTransaction.prototype.toString=function(){return "ROLLBACK TRANSACTION"},S.RollbackTransaction.prototype.execute=function(e,n,t){var r=1;return c.databases[e].engineid?c.engines[c.databases[e].engineid].rollback(e,t):(t&&(r=t(r)),r)},c.options.tsql&&(c.stdfn.OBJECT_ID=function(e,n){typeof n>"u"&&(n="T"),n=n.toUpperCase();var t=e.split("."),r=c.useid,i=t[0];t.length==2&&(r=t[0],i=t[1]);var s=c.databases[r].tables;r=c.databases[r].databaseid;for(var a in s)if(a==i)return s[a].view&&n=="V"||!s[a].view&&n=="T"?r+"."+a:void 0}),c.options.mysql&&(c.fn.TIMESTAMPDIFF=function(e,n,t){return c.stdfn.DATEDIFF(e,n,t)}),(c.options.mysql||c.options.sqlite)&&(c.from.INFORMATION_SCHEMA=function(e,n,t,r,i){if(e=="VIEWS"||e=="TABLES"){var s=[];for(var a in c.databases){var o=c.databases[a].tables;for(var f in o)(o[f].view&&e=="VIEWS"||!o[f].view&&e=="TABLES")&&s.push({TABLE_CATALOG:a,TABLE_NAME:f});}return t&&(s=t(s,r,i)),s}throw new Error("Unknown INFORMATION_SCHEMA table")}),c.into.SQL=function(e,n,t,r,i){var s;typeof e=="object"&&(n=e,e=void 0);var a={};if(c.utils.extend(a,n),typeof a.tableid>"u")throw new Error("Table for INSERT TO is not defined.");var o="";r.length===0&&typeof t[0]=="object"&&(r=Object.keys(t[0]).map(function(E){return {columnid:E}}));for(var f=0,m=t.length;f<m;f++)o+="INSERT INTO "+n.tableid+"(",o+=r.map(function(E){return E.columnid}).join(","),o+=") VALUES (",o+=r.map(function(E){var p=t[f][E.columnid];if(p==null)return "NULL";var h=E.typeid&&(E.typeid==="STRING"||E.typeid==="VARCHAR"||E.typeid==="NVARCHAR"||E.typeid==="CHAR"||E.typeid==="NCHAR")||typeof p=="string";return h&&(p="'"+Rs(p)+"'"),p}).join(","),o+=`);
|
|
3102
|
-
`;return e=c.utils.autoExtFilename(e,"sql",n),s=c.utils.saveFile(e,o),i&&(s=i(s)),s},c.into.HTML=function(e,n,t,r,i){var s=1;if(typeof document!="object"){var a={headers:true};c.utils.extend(a,n);var o=document.querySelector(e);if(!o)throw new Error("Selected HTML element is not found");r.length===0&&typeof t[0]=="object"&&(r=Object.keys(t[0]).map(function(v){return {columnid:v}}));var f=document.createElement("table"),m=document.createElement("thead");if(f.appendChild(m),a.headers){for(var E=document.createElement("tr"),p=0;p<r.length;p++){var h=document.createElement("th");h.textContent=r[p].columnid,E.appendChild(h);}m.appendChild(E);}var g=document.createElement("tbody");f.appendChild(g);for(var A=0;A<t.length;A++){for(var E=document.createElement("tr"),p=0;p<r.length;p++){var h=document.createElement("td");h.textContent=t[A][r[p].columnid],E.appendChild(h);}g.appendChild(E);}c.utils.domEmptyChildren(o),o.appendChild(f);}return i&&(s=i(s)),s},c.into.JSON=function(e,n,t,r,i){var s=1;typeof e=="object"&&(n=e,e=void 0);var a=JSON.stringify(t);return e=c.utils.autoExtFilename(e,"json",n),s=c.utils.saveFile(e,a),i&&(s=i(s)),s},c.into.OBJECT=function(e,n,t,r,i){var s;if(typeof e=="object"&&(n=e,e=void 0),e){var a=JSON.stringify(t);e=c.utils.autoExtFilename(e,"json",n),s=c.utils.saveFile(e,a);}else s=t;return i&&(s=i(s)),s},c.into.TXT=function(e,n,t,r,i){r.length===0&&t.length>0&&(r=Object.keys(t[0]).map(function(f){return {columnid:f}})),typeof e=="object"&&(n=e,e=void 0);var s=t.length,a="";if(t.length>0){var o=r[0].columnid;a+=t.map(function(f){return f[o]}).join(`
|
|
3103
|
-
`);}return e=c.utils.autoExtFilename(e,"txt",n),s=c.utils.saveFile(e,a),i&&(s=i(s)),s},c.into.TAB=c.into.TSV=function(e,n,t,r,i){var s={};return c.utils.extend(s,n),s.separator=" ",e=c.utils.autoExtFilename(e,"tab",n),s.autoExt=false,c.into.CSV(e,s,t,r,i)},c.into.CSV=function(e,n,t,r,i){r.length===0&&t.length>0&&(r=Object.keys(t[0]).map(function(f){return {columnid:f}})),typeof e=="object"&&(n=e,e=void 0);var s={headers:true};s.separator=";",s.quote='"',s.utf8Bom=true,n&&!n.headers&&typeof n.headers<"u"&&(s.utf8Bom=false),c.utils.extend(s,n);var a=t.length,o=s.utf8Bom?"\uFEFF":"";return s.headers&&(o+=s.quote+r.map(function(f){return f.columnid.trim()}).join(s.quote+s.separator+s.quote)+s.quote+`\r
|
|
3104
|
-
`),t.forEach(function(f){o+=r.map(function(m){var E=f[m.columnid];return s.quote!==""&&(E=(E+"").replace(new RegExp("\\"+s.quote,"g"),s.quote+s.quote)),+E!=E&&(E=s.quote+E+s.quote),E}).join(s.separator)+`\r
|
|
3105
|
-
`;}),e=c.utils.autoExtFilename(e,"csv",n),a=c.utils.saveFile(e,o,null,{disableAutoBom:true}),i&&(a=i(a)),a},c.into.XLS=function(e,n,t,r,i){typeof e=="object"&&(n=e,e=void 0);var s={};n&&n.sheets&&(s=n.sheets);var a={headers:true};typeof s.Sheet1<"u"?a=s[0]:typeof n<"u"&&(a=n),typeof a.sheetid>"u"&&(a.sheetid="Sheet1");var o=m();e=c.utils.autoExtFilename(e,"xls",n);var f=c.utils.saveFile(e,o);return i&&(f=i(f)),f;function m(){var p='<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head> <meta charset="utf-8" /> <!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets> ';if(p+=" <x:ExcelWorksheet><x:Name>"+a.sheetid+"</x:Name><x:WorksheetOptions><x:DisplayGridlines/> </x:WorksheetOptions> </x:ExcelWorksheet>",p+="</x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--></head>",p+="<body",typeof a.style<"u"&&(p+=' style="',typeof a.style=="function"?p+=a.style(a):p+=a.style,p+='"'),p+=">",p+="<table>",typeof a.caption<"u"){var h=a.caption;typeof h=="string"&&(h={title:h}),p+="<caption",typeof h.style<"u"&&(p+=' style="',typeof h.style=="function"?p+=h.style(a,h):p+=h.style,p+='" '),p+=">",p+=h.title,p+="</caption>";}return typeof a.columns<"u"?r=a.columns:r.length==0&&t.length>0&&typeof t[0]=="object"&&(Array.isArray(t[0])?r=t[0].map(function(g,A){return {columnid:A}}):r=Object.keys(t[0]).map(function(g){return {columnid:g}})),r.forEach(function(g,A){typeof a.column<"u"&&Be(g,a.column),typeof g.width>"u"&&(a.column&&a.column.width!="undefined"?g.width=a.column.width:g.width="120px"),typeof g.width=="number"&&(g.width=g.width+"px"),typeof g.columnid>"u"&&(g.columnid=A),typeof g.title>"u"&&(g.title=""+g.columnid.trim()),a.headers&&Array.isArray(a.headers)&&(g.title=a.headers[A]);}),p+="<colgroups>",r.forEach(function(g){p+='<col style="width: '+g.width+'"></col>';}),p+="</colgroups>",a.headers&&(p+="<thead>",p+="<tr>",r.forEach(function(g,A){p+="<th ",typeof g.style<"u"&&(p+=' style="',typeof g.style=="function"?p+=g.style(a,g,A):p+=g.style,p+='" '),p+=">",typeof g.title<"u"&&(typeof g.title=="function"?p+=g.title(a,g,A):p+=g.title),p+="</th>";}),p+="</tr>",p+="</thead>"),p+="<tbody>",t&&t.length>0&&t.forEach(function(g,A){if(!(A>a.limit)){p+="<tr";var v={};Be(v,a.row),a.rows&&a.rows[A]&&Be(v,a.rows[A]),typeof v<"u"&&typeof v.style<"u"&&(p+=' style="',typeof v.style=="function"?p+=v.style(a,g,A):p+=v.style,p+='" '),p+=">",r.forEach(function(T,O){var b={};Be(b,a.cell),Be(b,v.cell),typeof a.column<"u"&&Be(b,a.column.cell),Be(b,T.cell),a.cells&&a.cells[A]&&a.cells[A][O]&&Be(b,a.cells[A][O]);var C1=g[T.columnid];typeof b.value=="function"&&(C1=b.value(C1,a,g,T,b,A,O));var C=b.typeid;typeof C=="function"&&(C=C(C1,a,g,T,b,A,O)),typeof C>"u"&&(typeof C1=="number"?C="number":typeof C1=="string"?C="string":typeof C1=="boolean"?C="boolean":typeof C1=="object"&&C1 instanceof Date&&(C="date"));var a1="";C=="money"?a1='mso-number-format:"\\#\\,\\#\\#0\\\\ _\u0440_\\.";white-space:normal;':C=="number"?a1=" ":C=="date"?a1='mso-number-format:"Short Date";':n.types&&n.types[C]&&n.types[C].typestyle&&(a1=n.types[C].typestyle),a1=a1||'mso-number-format:"\\@";',p+="<td style='"+a1+"' ",typeof b.style<"u"&&(p+=' style="',typeof b.style=="function"?p+=b.style(C1,a,g,T,A,O):p+=b.style,p+='" '),p+=">";var r1=b.format;if(typeof C1>"u")p+="";else if(typeof r1<"u")if(typeof r1=="function")p+=r1(C1);else if(typeof r1=="string")p+=C1;else throw new Error("Unknown format type. Should be function or string");else C=="number"||C=="date"?p+=C1.toString():C=="money"?p+=(+C1).toFixed(2):p+=C1;p+="</td>";}),p+="</tr>";}}),p+="</tbody>",p+="</table>",p+="</body>",p+="</html>",p}},c.into.XLSXML=function(e,n,t,r,i){n=n||{},typeof e=="object"&&(n=e,e=void 0);var s={},a,o;n&&n.sheets?(s=n.sheets,a=t,o=r):(s.Sheet1=n,a=[t],o=[r]),e=c.utils.autoExtFilename(e,"xls",n);var f=c.utils.saveFile(e,m());return i&&(f=i(f)),f;function m(){function E(i1){return i1==null?"":String(i1).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}var p='<?xml version="1.0"?> <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html="http://www.w3.org/TR/REC-html40"> <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office"> </DocumentProperties> <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office"> <AllowPNG/> </OfficeDocumentSettings> <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel"> <ActiveSheet>0</ActiveSheet> </ExcelWorkbook> <Styles> <Style ss:ID="Default" ss:Name="Normal"> <Alignment ss:Vertical="Bottom"/> <Borders/> <Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="12" ss:Color="#000000"/> <Interior/> <NumberFormat/> <Protection/> </Style>',h="",g=" </Styles>",A={},v=62;function T(i1){var k1="";for(var W1 in i1){k1+="<"+W1;for(var z1 in i1[W1])k1+=" ",z1.substr(0,2)=="x:"?k1+=z1:k1+="ss:",k1+=z1+"="+JSON.stringify(i1[W1][z1]);k1+="/>";}var R=d3(k1);return A[R]||(A[R]={styleid:v},h+=`<Style ss:ID=${JSON.stringify("s"+v)}>`,h+=k1.replace(/<\s*\/\s*Style /gi,"<"),h+="</Style>",v++),"s"+A[R].styleid}function O(i1){try{return Object.values(i1)}catch{return Object.keys(i1).map(function(W1){return i1[W1]})}}var b=0;for(var C1 in s){var C=s[C1],a1=typeof C.dataidx<"u"?C.dataidx:b++,r1=O(a[a1]),j=void 0;typeof C.columns<"u"?j=C.columns:(j=o[a1],(j===void 0||j.length==0&&r1.length>0)&&typeof r1[0]=="object"&&(Array.isArray(r1[0])?j=r1[0].map(function(i1,k1){return {columnid:k1}}):j=Object.keys(r1[0]).map(function(i1){return {columnid:i1}}))),j.forEach(function(i1,k1){typeof C.column<"u"&&Be(i1,C.column),typeof i1.width>"u"&&(C.column&&typeof C.column.width<"u"?i1.width=C.column.width:i1.width=120),typeof i1.width=="number"&&(i1.width=i1.width),typeof i1.columnid>"u"&&(i1.columnid=k1),typeof i1.title>"u"&&(i1.title=""+i1.columnid.trim()),C.headers&&Array.isArray(C.headers)&&(i1.title=C.headers[k1]);}),g+="<Worksheet ss:Name="+JSON.stringify(C1)+'> <Table ss:ExpandedColumnCount="'+j.length+'" ss:ExpandedRowCount="'+((C.headers?1:0)+Math.min(r1.length,C.limit||r1.length))+'" x:FullColumns="1" x:FullRows="1" ss:DefaultColumnWidth="65" ss:DefaultRowHeight="15">',j.forEach(function(i1,k1){g+=`
|
|
3106
|
-
<Column
|
|
3107
|
-
ss:Index="${k1+1}"
|
|
3108
|
-
ss:AutoFitWidth="0"
|
|
3109
|
-
ss:Width=${JSON.stringify(""+i1.width)}
|
|
3110
|
-
/>`;}),C.headers&&(g+='<Row ss:AutoFitHeight="0">',j.forEach(function(i1,k1){if(g+="<Cell ",typeof i1.style<"u"){var W1={};typeof i1.style=="function"?Be(W1,i1.style(C,i1,k1)):Be(W1,i1.style),g+="ss:StyleID="+JSON.stringify(T(W1));}g+='><Data ss:Type="String">',typeof i1.title<"u"&&(typeof i1.title=="function"?g+=E(i1.title(C,i1,k1)):g+=E(i1.title)),g+="</Data></Cell>";}),g+="</Row>"),r1&&r1.length>0&&r1.forEach(function(i1,k1){if(!(k1>C.limit)){var W1={};if(Be(W1,C.row),C.rows&&C.rows[k1]&&Be(W1,C.rows[k1]),g+="<Row ",typeof W1<"u"){var z1={};typeof W1.style<"u"&&(typeof W1.style=="function"?Be(z1,W1.style(C,i1,k1)):Be(z1,W1.style),g+="ss:StyleID="+JSON.stringify(T(z1)));}g+=">",j.forEach(function(R,M1){var ee={};Be(ee,C.cell),Be(ee,W1.cell),typeof C.column<"u"&&Be(ee,C.column.cell),Be(ee,R.cell),C.cells&&C.cells[k1]&&C.cells[k1][M1]&&Be(ee,C.cells[k1][M1]);var _1=i1[R.columnid];typeof ee.value=="function"&&(_1=ee.value(_1,C,i1,R,ee,k1,M1));var X1=ee.typeid;typeof X1=="function"&&(X1=X1(_1,C,i1,R,ee,k1,M1)),typeof X1>"u"&&(typeof _1=="number"?X1="number":typeof _1=="string"?X1="string":typeof _1=="boolean"?X1="boolean":typeof _1=="object"&&_1 instanceof Date&&(X1="date"));var Se="String";X1=="number"?Se="Number":X1=="date"&&(Se="Date");g+="<Cell ";var Xe={};typeof ee.style<"u"&&(typeof ee.style=="function"?Be(Xe,ee.style(_1,C,i1,R,k1,M1)):Be(Xe,ee.style),g+="ss:StyleID="+JSON.stringify(T(Xe))),g+=">",g+="<Data ss:Type="+JSON.stringify(Se)+">";var Ve=ee.format;if(typeof _1>"u")g+="";else if(typeof Ve<"u")if(typeof Ve=="function")g+=E(Ve(_1));else if(typeof Ve=="string")g+=E(_1);else throw new Error("Unknown format type. Should be function or string");else X1=="number"||X1=="date"?g+=E(_1.toString()):X1=="money"?g+=E((+_1).toFixed(2)):g+=E(_1);g+="</Data></Cell>";}),g+="</Row>";}}),g+="</Table></Worksheet>";}return g+="</Workbook>",p+h+g}},c.into.XLSX=function(e,n,t,r,i){var s=1;n=n||{},pt(r,[{columnid:"_"}])&&(t=t.map(function(p){return p._}),r=void 0),e=c.utils.autoExtFilename(e,"xlsx",n);var a=Jt();typeof e=="object"&&(n=e,e=void 0);var o={SheetNames:[],Sheets:{}};return n.sourcefilename?c.utils.loadBinaryFile(n.sourcefilename,!!i,function(p){o=a.read(p,{type:"binary",...c.options.excel,...n}),f(),i&&(s=i(s));}):(f(),i&&(s=i(s))),s;function f(){typeof n=="object"&&Array.isArray(n)?t&&t.length>0&&t.forEach(function(p,h){m(n[h],p,void 0,h+1);}):m(n,t,r,1),E();}function m(p,h,g,A){var v={sheetid:"Sheet "+A,headers:true};c.utils.extend(v,p);var T=Object.keys(h).length;(!g||g.length==0)&&(T>0?g=Object.keys(h[0]).map(function(M1){return {columnid:M1}}):g=[]);var O={};o.SheetNames.indexOf(v.sheetid)>-1||(o.SheetNames.push(v.sheetid),o.Sheets[v.sheetid]={}),O=o.Sheets[v.sheetid];var b="A1";v.range&&(b=v.range);var C1=c.utils.xlscn(b.match(/[A-Z]+/)[0]),C=+b.match(/[0-9]+/)[0]-1;if(o.Sheets[v.sheetid]["!ref"])var a1=o.Sheets[v.sheetid]["!ref"],r1=c.utils.xlscn(a1.match(/[A-Z]+/)[0]),j=+a1.match(/[0-9]+/)[0]-1;else var r1=1,j=1;var i1=g.length?0:1,k1=Math.max(C1+g.length-1+i1,r1),W1=Math.max(C+T+2,j),z1=C+1;o.Sheets[v.sheetid]["!ref"]="A1:"+c.utils.xlsnc(k1)+W1,v.headers&&(g.forEach(function(M1,ee){O[c.utils.xlsnc(C1+ee)+""+z1]={v:M1.columnid.trim()};}),z1++);for(var R=0;R<T;R++)g.forEach(function(M1,ee){var _1={v:h[R][M1.columnid]};typeof h[R][M1.columnid]=="number"?_1.t="n":typeof h[R][M1.columnid]=="string"?_1.t="s":typeof h[R][M1.columnid]=="boolean"?_1.t="b":typeof h[R][M1.columnid]=="object"&&h[R][M1.columnid]instanceof Date&&(_1.t="d"),O[c.utils.xlsnc(C1+ee)+""+z1]=_1;}),z1++;}function E(p){var h;if(typeof e>"u")s=o;else if(h=Jt(),B1.isNode||B1.isMeteorServer)h.writeFile(o,e);else {var g={bookType:"xlsx",bookSST:false,type:"binary"},A=h.write(o,g),v=function(T){for(var O=new ArrayBuffer(T.length),b=new Uint8Array(O),C1=0;C1!=T.length;++C1)b[C1]=T.charCodeAt(C1)&255;return O};gt(new Blob([v(A)],{type:"application/octet-stream"}),e);}}},c.from.METEOR=function(e,n,t,r,i){var s=e.find(n).fetch();return t&&(s=t(s,r,i)),s},c.from.TABLETOP=function(e,n,t,r,i){var s=[],a={headers:true,simpleSheet:true,key:e};return c.utils.extend(a,n),a.callback=function(o){s=o,t&&(s=t(s,r,i));},Tabletop.init(a),null},c.from.HTML=function(e,n,t,r,i){var s={};c.utils.extend(s,n);var a=document.querySelector(e);if(!a||a.tagName!=="TABLE")throw new Error("Selected HTML element is not a TABLE");var o=[],f=s.headers;if(f&&!Array.isArray(f)){f=[];for(var m=a.querySelector("thead tr").children,E=0;E<m.length;E++)m.item(E).style&&m.item(E).style.display==="none"&&s.skipdisplaynone?f.push(void 0):f.push(m.item(E).textContent);}for(var p=a.querySelectorAll("tbody tr"),h=0;h<p.length;h++){var g=p.item(h).children,A={};for(E=0;E<g.length;E++)g.item(E).style&&g.item(E).style.display==="none"&&s.skipdisplaynone||(f?A[f[E]]=g.item(E).textContent:A[E]=g.item(E).textContent);o.push(A);}return t&&(o=t(o,r,i)),o},c.from.RANGE=function(e,n,t,r,i){for(var s=[],a=e;a<=n;a++)s.push(a);return t&&(s=t(s,r,i)),s},c.from.UNNEST=function(e,n,t,r,i){var s=e;return Array.isArray(s)||(s=[]),t&&(s=t(s,r,i)),s},c.from.FILE=function(e,n,t,r,i){var s;if(typeof e=="string")s=e;else if(e instanceof Event)s=e.target.files[0].name;else throw new Error("Wrong usage of FILE() function");var a=s.split("."),o=a[a.length-1].toUpperCase();if(c.from[o])return c.from[o](e,n,t,r,i);throw new Error("Cannot recognize file type for loading")},c.from.JSON=function(e,n,t,r,i){var s;return e=c.utils.autoExtFilename(e,"json",n),c.utils.loadFile(e,!!t,function(a){s=JSON.parse(a),t&&(s=t(s,r,i));}),s};const bi=e=>function(n,t,r,i,s){let a=[];return n=c.utils.autoExtFilename(n,e,t),c.utils.loadFile(n,!!r,function(o){o.split(/\r?\n/).forEach((f,m)=>{const E=f.trim();if(E!=="")try{a.push(JSON.parse(E));}catch(p){throw new Error(`Could not parse JSON at line ${m}: ${p.toString()}`)}}),r&&(a=r(a,i,s));},o=>{const f=o instanceof Error?o:new Error(o);if(s&&s.cb){s.cb(null,f);return}throw f}),a};c.from.JSONL=bi("jsonl"),c.from.NDJSON=bi("ndjson"),c.from.TXT=function(e,n,t,r,i){var s;return e=c.utils.autoExtFilename(e,"txt",n),c.utils.loadFile(e,!!t,function(a){s=a.split(/\r?\n/),s[s.length-1]===""&&s.pop();for(var o=0,f=s.length;o<f;o++)s[o]==+s[o]&&(s[o]=+s[o]),s[o]=[s[o]];t&&(s=t(s,r,i));}),s},c.from.TAB=c.from.TSV=function(e,n,t,r,i){return n=n||{},n.separator=" ",e=c.utils.autoExtFilename(e,"tab",n),n.autoext=false,c.from.CSV(e,n,t,r,i)},c.from.CSV=function(e,n,t,r,i){e=""+e;var s={separator:",",quote:'"',headers:true,raw:false};c.utils.extend(s,n);var a,o=[];const f=!s.raw&&!i?.intofns;function m(p){return f&&p!==void 0&&p.length!==0&&p==+p?+p:p}function E(p){var h=s.separator.charCodeAt(0),g=s.quote.charCodeAt(0),A={},v={},T=[],O=p.length,b=0,C1=0,C,a1;function r1(){if(b>=O)return v;if(a1)return a1=false,A;var W1=b;if(p.charCodeAt(W1)===g){for(var z1=W1;z1++<O;)if(p.charCodeAt(z1)===g){if(p.charCodeAt(z1+1)!==g)break;++z1;}b=z1+2;var R=p.charCodeAt(z1+1);return R===13?(a1=true,p.charCodeAt(z1+2)===10&&++b):R===10&&(a1=true),p.substring(W1+1,z1).replace(/""/g,'"')}for(;b<O;){var R=p.charCodeAt(b++),M1=1;if(R===10)a1=true;else if(R===13)a1=true,p.charCodeAt(b)===10&&(++b,++M1);else if(R!==h)continue;return p.substring(W1,b-M1)}return p.substring(W1)}for(;(C=r1())!==v;){for(var j=[];C!==A&&C!==v;)j.push(C.trim()),C=r1();if(s.headers){if(C1===0){if(typeof s.headers=="boolean")o=j;else if(Array.isArray(s.headers)){o=s.headers;var i1={};o.forEach(function(W1,z1){i1[W1]=m(j[z1]);}),T.push(i1);}}else {var i1={};o.forEach(function(z1,R){i1[z1]=m(j[R]);}),T.push(i1);}C1++;}else {var i1={};j.forEach(function(z1,R){i1[R]=m(j[R]);}),T.push(i1);}}if(a=T,s.headers&&i&&i.sources&&i.sources[r]){var k1=i.sources[r].columns=[];o.forEach(function(W1){k1.push({columnid:W1});});}t&&(a=t(a,r,i));}return new RegExp(`
|
|
3111
|
-
`).test(e)?E(e):(e=c.utils.autoExtFilename(e,"csv",n),c.utils.loadFile(e,!!t,E,p=>i.cb(null,p))),a};function an(e,n,t,r,i,s){var a={};t=t||{},c.utils.extend(a,t),typeof a.headers>"u"&&(a.headers=true);var o;function f(p){for(var h="",g=0,A=10240;g<p.byteLength/A;++g)h+=String.fromCharCode.apply(null,new Uint8Array(p.slice(g*A,g*A+A)));return h+=String.fromCharCode.apply(null,new Uint8Array(p.slice(g*A))),h}function m(p){return p&&c.options.casesensitive===false?p.toLowerCase():p}function E(p,h,g){var A,v=[];if(typeof g.range>"u"?A=p.Sheets[h]["!ref"]:(A=g.range,p.Sheets[h][A]&&(A=p.Sheets[h][A])),A){for(var T=A.split(":"),O=T[0].match(/[A-Z]+/)[0],b=+T[0].match(/[0-9]+/)[0],C1=T[1].match(/[A-Z]+/)[0],C=+T[1].match(/[0-9]+/)[0],a1={},r1=c.utils.xlscn(O),j=c.utils.xlscn(C1),i1=r1;i1<=j;i1++){var k1=c.utils.xlsnc(i1);g.headers?p.Sheets[h][k1+""+b]?a1[k1]=m(p.Sheets[h][k1+""+b].v):a1[k1]=m(k1):a1[k1]=k1;}g.headers&&b++;for(var W1=b;W1<=C;W1++){for(var z1={},i1=r1;i1<=j;i1++){var k1=c.utils.xlsnc(i1);p.Sheets[h][k1+""+W1]&&(z1[a1[k1]]=p.Sheets[h][k1+""+W1].v);}v.push(z1);}}else v.push([]);return v.length>0&&v[v.length-1]&&Object.keys(v[v.length-1]).length==0&&v.pop(),v}return n=c.utils.autoExtFilename(n,"xls",t),c.utils.loadBinaryFile(n,!!r,function(p){if(p instanceof ArrayBuffer)var h=f(p),g=e.read(btoa(h),{type:"base64",...c.options.excel,...t});else var g=e.read(p,{type:"binary",...c.options.excel,...t});var A=a.sheetid==="*"||Array.isArray(a.sheetid)&&a.sheetid.length>0;if(A){o=[];for(var v=a.sheetid==="*"?g.SheetNames:a.sheetid,T=0;T<v.length;T++){var O=a.sheetid==="*"?v[T]:typeof v[T]=="number"?g.SheetNames[v[T]]:v[T];if(g.Sheets[O]){for(var b=E(g,O,a),C1=0;C1<b.length;C1++)b[C1]._sheet=O;o=o.concat(b);}}}else {var C;typeof a.sheetid>"u"?C=g.SheetNames[0]:typeof a.sheetid=="number"?C=g.SheetNames[a.sheetid]:C=a.sheetid,o=E(g,C,a);}r&&(o=r(o,i,s));},function(p){if(s&&s.cb){s.cb(null,p);return}throw p}),o}c.from.XLS=function(e,n,t,r,i){return n=n||{},e=c.utils.autoExtFilename(e,"xls",n),n.autoExt=false,an(Jt(),e,n,t,r,i)},c.from.XLSX=function(e,n,t,r,i){return n=n||{},e=c.utils.autoExtFilename(e,"xlsx",n),n.autoExt=false,an(Jt(),e,n,t,r,i)},c.from.ODS=function(e,n,t,r,i){return n=n||{},e=c.utils.autoExtFilename(e,"ods",n),n.autoExt=false,an(Jt(),e,n,t,r,i)},c.from.XML=function(e,n,t,r,i){var s;return c.utils.loadFile(e,!!t,function(a){s=ta(a).root,t&&(s=t(s,r,i));}),s};function ta(e){return e=e.trim(),e=e.replace(/<!--[\s\S]*?-->/g,""),n();function n(){return {declaration:t(),root:r()}}function t(){var E=o(/^<\?xml\s*/);if(E){for(var p={attributes:{}};!(f()||m("?>"));){var h=s();if(!h)return p;p.attributes[h.name]=h.value;}return o(/\?>\s*/),p}}function r(){var E=o(/^<([\w-:.]+)\s*/);if(E){for(var p={name:E[1],attributes:{},children:[]};!(f()||m(">")||m("?>")||m("/>"));){var h=s();if(!h)return p;p.attributes[h.name]=h.value;}if(o(/^\s*\/>\s*/))return p;o(/\??>\s*/),p.content=i();for(var g;g=r();)p.children.push(g);return o(/^<\/[\w-:.]+>\s*/),p}}function i(){var E=o(/^([^<]*)/);return E?E[1]:""}function s(){var E=o(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(E)return {name:E[1],value:a(E[2])}}function a(E){return E.replace(/^['"]|['"]$/g,"")}function o(E){var p=e.match(E);if(p)return e=e.slice(p[0].length),p}function f(){return e.length==0}function m(E){return e.indexOf(E)==0}}c.from.GEXF=function(e,n,t,r,i){var s;return c("SEARCH FROM XML("+e+")",[],function(a){s=a,t&&(s=t(s));}),s},S.Print=function(e){return Object.assign(this,e)},S.Print.prototype.toString=function(){var e="PRINT";return this.statement&&(e+=" "+this.statement.toString()),e},S.Print.prototype.execute=function(e,n,t){var r=this,i=1;if(c.precompile(this,e,n),this.exprs&&this.exprs.length>0){var s=this.exprs.map(function(o){var f=new Function("params,alasql,p","var y;return "+o.toJS("({})","",null)).bind(r),m=f(n,c);return M3(m)});console.log.apply(console,s);}else if(this.select){var a=this.select.execute(e,n);console.log(M3(a));}else console.log();return t&&(i=t(i)),i},S.Source=function(e){return Object.assign(this,e)},S.Source.prototype.toString=function(){var e="SOURCE";return this.url&&(e+=" '"+this.url+" '"),e},S.Source.prototype.execute=function(e,n,t){var r;return vr(this.url,!!t,function(i){return r=c(i),t&&(r=t(r)),r},function(i){throw i}),r},S.Require=function(e){return Object.assign(this,e)},S.Require.prototype.toString=function(){var e="REQUIRE";return this.paths&&this.paths.length>0&&(e+=this.paths.map(function(n){return n.toString()}).join(",")),this.plugins&&this.plugins.length>0&&(e+=this.plugins.map(function(n){return n.toUpperCase()}).join(",")),e},S.Require.prototype.execute=function(e,n,t){var r=this,i=0,s="";return this.paths&&this.paths.length>0?this.paths.forEach(function(a){vr(a.value,!!t,function(o){i++,s+=o,!(i<r.paths.length)&&(new Function("params,alasql",s)(n,c),t&&(i=t(i)));});}):this.plugins&&this.plugins.length>0?this.plugins.forEach(function(a){c.plugins[a]||vr(c.path+"/alasql-"+a.toLowerCase()+".js",!!t,function(o){i++,s+=o,!(i<r.plugins.length)&&(new Function("params,alasql",s)(n,c),c.plugins[a]=true,t&&(i=t(i)));});}):t&&(i=t(i)),i},S.Assert=function(e){return Object.assign(this,e)},S.Source.prototype.toString=function(){var e="ASSERT";return this.value&&(e+=" "+JSON.stringify(this.value)),e},S.Assert.prototype.execute=function(e){if(!pt(c.res,this.value))throw new Error((this.message||"Assert wrong")+": "+JSON.stringify(c.res)+" == "+JSON.stringify(this.value));return 1};var a3=c.engines.INDEXEDDB=function(){};async function Wt(e){const n=globalThis.indexedDB;if(!n)throw new Error("IndexedDB is not supported in this browser");if(n.databases)return (await n.databases()).find(s=>s.name===e)||0;const t=n.open(e);return new Promise(function(r,i){t.onsuccess=()=>{t.result.close(),r({name:e,version:t.result.version});},t.onupgradeneeded=s=>{s.target.transaction.abort(),r(0);},t.onerror=()=>{i(new Error("IndexedDB error"));},t.onblocked=()=>{r({name:e,version:t.result.version});};})}a3.showDatabases=function(e,n){if(!indexedDB.databases){n(null,new Error("SHOW DATABASE is not supported in this browser"));return}indexedDB.databases().then(t=>{const r=[],i=e&&new RegExp(e.value.replace(/\%/g,".*"),"g");for(var s=0;s<t.length;s++)(!e||t[s].name.match(i))&&r.push({databaseid:t[s].name});n(r);});},a3.createDatabase=async function(e,n,t,r,i){const s=await Wt(e).catch(a=>{if(i)return i(null,a),null;throw a});if(s!==null)if(s)if(t)i&&i(0);else {const a=new Error(`IndexedDB: Cannot create new database "${e}" because it already exists`);if(i){i(null,a);return}throw a}else {const a=indexedDB.open(e,1);a.onsuccess=()=>{a.result.close(),i(1);};}},a3.dropDatabase=async function(e,n,t){const r=await Wt(e).catch(i=>{if(t)return t(null,i),null;throw i});if(r!==null)if(r){const i=indexedDB.deleteDatabase(e);i.onsuccess=()=>{t&&t(1);};}else if(n)t&&t(0);else {if(t){t(null,new Error(`IndexedDB: Cannot drop database "${e}" because it does not exist`));return}throw new Error(`IndexedDB: Cannot drop database "${e}" because it does not exist`)}},a3.attachDatabase=async function(e,n,t,r,i){const s=await Wt(e).catch(m=>{if(i)return i(null,m),null;throw m});if(s===null)return;if(!s){const m=new Error(`IndexedDB: Cannot attach database "${e}" because it does not exist`);if(i){i(null,m);return}throw m}const a=await new Promise((m,E)=>{const p=indexedDB.open(e);p.onsuccess=()=>{m(p.result.objectStoreNames),p.result.close();};}),o=new c.Database(n||e);o.engineid="INDEXEDDB",o.ixdbid=e,o.tables=[];for(var f=0;f<a.length;f++)o.tables[a[f]]={};i&&i(1);},a3.createTable=async function(e,n,t,r){const i=c.databases[e].ixdbid,s=await Wt(i).catch(o=>{if(r)return r(null,o),null;throw o});if(s===null)return;if(!s){const o=new Error('IndexedDB: Cannot create table in database "'+i+'" because it does not exist');if(r){r(null,o);return}throw o}const a=indexedDB.open(i,s.version+1);a.onupgradeneeded=function(o){a.result.createObjectStore(n,{autoIncrement:true});},a.onsuccess=function(o){a.result.close(),r&&r(1);},a.onerror=o=>{r(null,o);},a.onblocked=function(o){r(null,new Error(`Cannot create table "${n}" because database "${e}" is blocked`));};},a3.dropTable=async function(e,n,t,r){const i=c.databases[e].ixdbid,s=await Wt(i).catch(f=>{if(r)return r(null,f),null;throw f});if(s===null)return;if(!s){const f=new Error('IndexedDB: Cannot drop table in database "'+i+'" because it does not exist');if(r){r(null,f);return}throw f}const a=indexedDB.open(i,s.version+1);let o;a.onupgradeneeded=function(f){var m=a.result;m.objectStoreNames.contains(n)?(m.deleteObjectStore(n),delete c.databases[e].tables[n]):t||(o=new Error(`IndexedDB: Cannot drop table "${n}" because it does not exist`),f.target.transaction.abort());},a.onsuccess=function(f){a.result.close(),r&&r(1);},a.onerror=function(f){r&&r(null,o||f);},a.onblocked=function(f){r(null,new Error(`Cannot drop table "${n}" because database "${e}" is blocked`));};},a3.intoTable=function(e,n,t,r,i){const s=c.databases[e].ixdbid,a=indexedDB.open(s);var o=c.databases[e],f=o.tables[n];a.onupgradeneeded=m=>{m.target.transaction.abort();const E=new Error(`Cannot insert into table "${n}" because database "${e}" does not exist`);i&&i(null,E);},a.onsuccess=()=>{for(var m=a.result,E=m.transaction([n],"readwrite"),p=E.objectStore(n),h=0,g=t.length;h<g;h++)p.add(t[h]);E.oncomplete=function(){m.close();for(var A in f.afterinsert)if(f.afterinsert[A]){var v=f.afterinsert[A];v.funcid?c.fn[v.funcid](t):v.statement&&v.statement.execute(e);}i&&i(g);};};},a3.fromTable=function(e,n,t,r,i){const s=c.databases[e].ixdbid,a=indexedDB.open(s);a.onupgradeneeded=o=>{o.target.transaction.abort();const f=new Error(`Cannot select from table "${n}" because database "${e}" does not exist`);t&&t(null,f);},a.onsuccess=()=>{const o=[],f=a.result,m=f.transaction([n]).objectStore(n).openCursor();m.onsuccess=()=>{const E=m.result;if(E){const p=typeof E=="object"?E.value:{[E.key]:E.value};o.push(p),E.continue();}else f.close(),t&&t(o,r,i);};};},a3.deleteFromTable=function(e,n,t,r,i){const s=c.databases[e].ixdbid,a=indexedDB.open(s);a.onsuccess=()=>{const o=a.result,f=o.transaction([n],"readwrite").objectStore(n).openCursor();let m=0;f.onsuccess=()=>{var E=f.result;E?((!t||t(E.value,r,c))&&(E.delete(),m++),E.continue()):(o.close(),i&&i(m));};};},a3.updateTable=function(e,n,t,r,i,s){const a=c.databases[e].ixdbid,o=indexedDB.open(a);o.onsuccess=function(){const f=o.result,m=f.transaction([n],"readwrite").objectStore(n).openCursor();let E=0;m.onsuccess=()=>{var p=m.result;if(p){if(!r||r(p.value,i)){var h=p.value;t(h,i),p.update(h),E++;}p.continue();}else f.close(),s&&s(E);};};},a3.commit=function(e,n){return n?n(1):1},a3.begin=a3.commit,a3.rollback=function(e,n){return n?n(1):1};var Ne=c.engines.LOCALSTORAGE=function(){};Ne.get=function(e){var n=localStorage.getItem(e);if(!(typeof n>"u")){var t;try{t=JSON.parse(n);}catch{throw new Error("Cannot parse JSON object from localStorage"+n)}return t}},Ne.set=function(e,n){typeof n>"u"?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(n));},Ne.storeTable=function(e,n){var t=c.databases[e],r=t.tables[n],i={};i.columns=r.columns,i.data=r.data,i.identities=r.identities,i.defaultfns=r.defaultfns,i.onupdatefns=r.onupdatefns,Ne.set(t.lsdbid+"."+n,i);},Ne.restoreTable=function(e,n){var t=c.databases[e],r=Ne.get(t.lsdbid+"."+n),i=new c.Table;for(var s in r)i[s]=r[s];return t.tables[n]=i,i.indexColumns(),i},Ne.removeTable=function(e,n){var t=c.databases[e];localStorage.removeItem(t.lsdbid+"."+n);},Ne.createDatabase=function(e,n,t,r,i){var s=1,a=Ne.get("alasql");if(t&&a&&a.databases&&a.databases[e])s=0;else {if(a||(a={databases:{}}),a.databases&&a.databases[e])throw new Error('localStorage: Cannot create new database "'+e+'" because it already exists');a.databases[e]=true,Ne.set("alasql",a),Ne.set(e,{databaseid:e,tables:{}});}return i&&(s=i(s)),s},Ne.dropDatabase=function(e,n,t){var r=1,i=Ne.get("alasql");if(n&&i&&i.databases&&!i.databases[e])r=0;else {if(!i){if(n)return t?t(0):0;throw new Error("There is no any AlaSQL databases in localStorage")}if(i.databases&&!i.databases[e])throw new Error('localStorage: Cannot drop database "'+e+'" because there is no such database');delete i.databases[e],Ne.set("alasql",i);var s=Ne.get(e);for(var a in s.tables)localStorage.removeItem(e+"."+a);localStorage.removeItem(e);}return t&&(r=t(r)),r},Ne.attachDatabase=function(e,n,t,r,i){var s=1;if(c.databases[n])throw new Error('Unable to attach database as "'+n+'" because it already exists');n||(n=e);var a=new c.Database(n);if(a.engineid="LOCALSTORAGE",a.lsdbid=e,a.tables=Ne.get(e).tables,!c.options.autocommit&&a.tables)for(var o in a.tables)Ne.restoreTable(n,o);return i&&(s=i(s)),s},Ne.showDatabases=function(e,n){var t=[],r=Ne.get("alasql");if(e)var i=new RegExp(e.value.replace(/%/g,".*"),"g");if(r&&r.databases){for(var s in r.databases)t.push({databaseid:s});e&&t&&t.length>0&&(t=t.filter(function(a){return a.databaseid.match(i)}));}return n&&(t=n(t)),t},Ne.createTable=function(e,n,t,r){var i=1,s=c.databases[e].lsdbid,a=Ne.get(s+"."+n);if(a&&!t)throw new Error('Table "'+n+'" alsready exists in localStorage database "'+s+'"');var o=Ne.get(s);return o.tables[n]=true,Ne.set(s,o),Ne.storeTable(e,n),r&&(i=r(i)),i},Ne.truncateTable=function(e,n,t,r){var i=1,s=c.databases[e].lsdbid,a;if(c.options.autocommit?a=Ne.get(s):a=c.databases[e],!t&&!a.tables[n])throw new Error('Cannot truncate table "'+n+'" in localStorage, because it does not exist');var o=Ne.restoreTable(e,n);return o.data=[],Ne.storeTable(e,n),r&&(i=r(i)),i},Ne.dropTable=function(e,n,t,r){var i=1,s=c.databases[e].lsdbid,a;if(c.options.autocommit?a=Ne.get(s):a=c.databases[e],!t&&!a.tables[n])throw new Error('Cannot drop table "'+n+'" in localStorage, because it does not exist');return delete a.tables[n],Ne.set(s,a),Ne.removeTable(e,n),r&&(i=r(i)),i},Ne.fromTable=function(e,n,t,r,i){var a=Ne.restoreTable(e,n).data;return t&&(a=t(a,r,i)),a},Ne.intoTable=function(e,n,t,r,i){var a=t.length,o=Ne.restoreTable(e,n);for(var f in o.identities){var m=o.identities[f];for(var E in t)t[E][f]=m.value,m.value+=m.step;}return o.data||(o.data=[]),o.data=o.data.concat(t),Ne.storeTable(e,n),i&&(a=i(a)),a},Ne.loadTableData=function(e,n){Ne.restoreTable(e,n);},Ne.saveTableData=function(e,n){var t=c.databases[e],r=c.databases[e].lsdbid;Ne.storeTable(r,n),t.tables[n].data=void 0;},Ne.commit=function(e,n){var t=c.databases[e],r=c.databases[e].lsdbid,i={databaseid:r,tables:{}};if(t.tables)for(var s in t.tables)i.tables[s]=true,Ne.storeTable(e,s);return Ne.set(r,i),n?n(1):1},Ne.begin=Ne.commit,Ne.rollback=function(e,n){return;};var Xt=c.engines.SQLITE=function(){};Xt.createDatabase=function(e,n,t,r,i){throw new Error("Connot create SQLITE database in memory. Attach it.")},Xt.dropDatabase=function(e){throw new Error("This is impossible to drop SQLite database. Detach it.")},Xt.attachDatabase=function(e,n,t,r,i){var s=1;if(c.databases[n])throw new Error('Unable to attach database as "'+n+'" because it already exists');if(t[0]&&t[0]instanceof S.StringValue||t[0]instanceof S.ParamValue){if(t[0]instanceof S.StringValue)var a=t[0].value;else if(t[0]instanceof S.ParamValue)var a=r[t[0].param];return c.utils.loadBinaryFile(a,true,function(o){var f=new c.Database(n||e);f.engineid="SQLITE",f.sqldbid=e;var m=f.sqldb=new SQL.Database(o);f.tables=[];var E=m.exec("SELECT * FROM sqlite_master WHERE type='table'")[0].values;E.forEach(function(p){f.tables[p[1]]={};var h=f.tables[p[1]].columns=[],g=c.parse(p[4]),A=g.statements[0].columns;A&&A.length>0&&A.forEach(function(v){h.push(v);});}),i(1);},function(o){throw new Error('Cannot open SQLite database file "'+t[0].value+'"')}),s}else throw new Error("Cannot attach SQLite database without a file");},Xt.fromTable=function(e,n,t,r,i){var s=c.databases[e].sqldb.exec("SELECT * FROM "+n),a=i.sources[r].columns=[];s[0].columns.length>0&&s[0].columns.forEach(function(f){a.push({columnid:f});});var o=[];s[0].values.length>0&&s[0].values.forEach(function(f){var m={};a.forEach(function(E,p){m[E.columnid]=f[p];}),o.push(m);}),t&&t(o,r,i);},Xt.intoTable=function(e,n,t,r,i){for(var s=c.databases[e].sqldb,a=0,o=t.length;a<o;a++){var f="INSERT INTO "+n+" (",m=t[a],E=Object.keys(m);f+=E.join(","),f+=") VALUES (",f+=E.map(function(h){var g=m[h];return typeof g=="string"&&(g="'"+g+"'"),g}).join(","),f+=")",s.exec(f);}var p=o;return i&&i(p),p};var e2=c.engines.FILESTORAGE=c.engines.FILE=function(){};if(e2.createDatabase=function(e,n,t,r,i){var s=1,a=n[0].value;return c.utils.fileExists(a,function(o){if(o){if(t)return s=0,i&&(s=i(s)),s;throw new Error("Cannot create new database file, because it already exists")}else {var f={tables:{}};c.utils.saveFile(a,JSON.stringify(f),function(m){i&&(s=i(s));});}}),s},e2.dropDatabase=function(e,n,t){var r,i="";if(typeof e=="object"&&e.value)i=e.value;else {var s=c.databases[e]||{};i=s.filename||"",delete c.databases[e];}return c.utils.fileExists(i,function(a){if(a)r=1,c.utils.deleteFile(i,function(){r=1,t&&(r=t(r));});else {if(!n)throw new Error("Cannot drop database file, because it does not exist");r=0,t&&(r=t(r));}}),r},e2.attachDatabase=function(e,n,t,r,i){var s=1;if(c.databases[n])throw new Error('Unable to attach database as "'+n+'" because it already exists');var a=new c.Database(n||e);return a.engineid="FILESTORAGE",a.filename=t[0].value,vr(a.filename,!!i,function(o){try{a.data=JSON.parse(o);}catch{throw new Error("Data in FileStorage database are corrupted")}if(a.tables=a.data.tables,!c.options.autocommit&&a.tables)for(var f in a.tables)a.tables[f].data=a.data[f];i&&(s=i(s));}),s},e2.createTable=function(e,n,t,r){var i=c.databases[e],s=i.data[n],a=1;if(s&&!t)throw new Error('Table "'+n+'" alsready exists in the database "'+fsdbid+'"');var o=c.databases[e].tables[n];return i.data.tables[n]={columns:o.columns,defaultfns:o.defaultfns,onupdatefns:o.onupdatefns},i.data[n]=[],e2.updateFile(e),r&&r(a),a},e2.updateFile=function(e){var n=c.databases[e];if(n.issaving){n.postsave=true;return}n.issaving=true,n.postsave=false,c.utils.saveFile(n.filename,JSON.stringify(n.data),function(){n.issaving=false,n.postsave&&setTimeout(function(){e2.updateFile(e);},50);});},e2.dropTable=function(e,n,t,r){var i=1,s=c.databases[e];if(!t&&!s.tables[n])throw new Error('Cannot drop table "'+n+'" in fileStorage, because it does not exist');return delete s.tables[n],delete s.data.tables[n],delete s.data[n],e2.updateFile(e),r&&r(i),i},e2.fromTable=function(e,n,t,r,i){var s=c.databases[e],a=s.data[n];return t&&(a=t(a,r,i)),a},e2.intoTable=function(e,n,t,r,i){var s=c.databases[e],a=t.length,o=s.data[n];return o||(o=[]),s.data[n]=o.concat(t),e2.updateFile(e),i&&i(a),a},e2.loadTableData=function(e,n){var t=c.databases[e];t.tables[n].data=t.data[n];},e2.saveTableData=function(e,n){var t=c.databases[e];t.data[n]=t.tables[n].data,t.tables[n].data=null,e2.updateFile(e);},e2.commit=function(e,n){var t=c.databases[e];if(t.tables)for(var i in t.tables)t.data.tables[i]={columns:t.tables[i].columns,defaultfns:t.tables[i].defaultfns,onupdatefns:t.tables[i].onupdatefns},t.data[i]=t.tables[i].data;return e2.updateFile(e),n?n(1):1},e2.begin=e2.commit,e2.rollback=function(e,n){var t=1,r=c.databases[e];r.dbversion++,i();function i(){setTimeout(function(){if(r.issaving)return i();c.loadFile(r.filename,!!n,function(s){r.data=s,r.tables={};for(var a in r.data.tables){var o=new c.Table({columns:r.data.tables[a].columns});Be(o,r.data.tables[a]),r.tables[a]=o,c.options.autocommit||(r.tables[a].data=r.data[a]),r.tables[a].indexColumns();}delete c.databases[e],c.databases[e]=new c.Database(e),Be(c.databases[e],r),c.databases[e].engineid="FILESTORAGE",c.databases[e].filename=r.filename,n&&(t=n(t));});},100);}},B1.isBrowser&&!B1.isWebWorker){if(c=c||false,!c)throw new Error("alasql was not found");c.worker=function(){throw new Error("Can find webworker in this enviroment")},typeof Worker<"u"&&(c.worker=function(e,n,t){if(e===true&&(e=void 0),typeof e>"u"){for(var r=document.getElementsByTagName("script"),i=0;i<r.length;i++)if(r[i].src.substr(-16).toLowerCase()==="alasql-worker.js"){e=r[i].src.substr(0,r[i].src.length-16)+"alasql.js";break}else if(r[i].src.substr(-20).toLowerCase()==="alasql-worker.min.js"){e=r[i].src.substr(0,r[i].src.length-20)+"alasql.min.js";break}else if(r[i].src.substr(-9).toLowerCase()==="alasql.js"){e=r[i].src;break}else if(r[i].src.substr(-13).toLowerCase()==="alasql.min.js"){e=r[i].src.substr(0,r[i].src.length-13)+"alasql.min.js";break}}if(typeof e>"u")throw new Error("Path to alasql.js is not specified");if(e!==false){var s="importScripts('";s+=e,s+="');self.onmessage = function(event) {alasql(event.data.sql,event.data.params, function(data){postMessage({id:event.data.id, data:data});});}";var a=new Blob([s],{type:"text/plain"});if(c.webworker=new Worker(URL.createObjectURL(a)),c.webworker.onmessage=function(f){var m=f.data.id;c.buffer[m](f.data.data),delete c.buffer[m];},c.webworker.onerror=function(f){throw f},arguments.length>1){var o="REQUIRE "+n.map(function(f){return '"'+f+'"'}).join(",");c(o,[],t);}}else if(e===false){delete c.webworker;return}});/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */var gt=gt||(function(e){if(!(typeof e>"u"||typeof navigator<"u"&&/MSIE [1-9]\./.test(navigator.userAgent))){var n=e.document,t=function(){return e.URL||e.webkitURL||e},r=n.createElementNS("http://www.w3.org/1999/xhtml","a"),i="download"in r,s=function(O){var b=new MouseEvent("click");O.dispatchEvent(b);},a=/constructor/i.test(e.HTMLElement)||e.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent),f=function(O){(e.setImmediate||e.setTimeout)(function(){throw O},0);},m="application/octet-stream",E=1e3*40,p=function(O){var b=function(){typeof O=="string"?t().revokeObjectURL(O):O.remove();};setTimeout(b,E);},h=function(O,b,C1){b=[].concat(b);for(var C=b.length;C--;){var a1=O["on"+b[C]];if(typeof a1=="function")try{a1.call(O,C1||O);}catch(r1){f(r1);}}},g=function(O){return /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(O.type)?new Blob(["\uFEFF",O],{type:O.type}):O},A=function(O,b,C1){C1||(O=g(O));var C=this,a1=O.type,r1=a1===m,j,i1=function(){h(C,"writestart progress write writeend".split(" "));},k1=function(){if((o||r1&&a)&&e.FileReader){var W1=new FileReader;W1.onloadend=function(){var R=o?W1.result:W1.result.replace(/^data:[^;]*;/,"data:attachment/file;"),M1=e.open(R,"_blank");M1||(e.location.href=R),R=void 0,C.readyState=C.DONE,i1();},W1.readAsDataURL(O),C.readyState=C.INIT;return}if(j||(j=t().createObjectURL(O)),r1)e.location.href=j;else {var z1=e.open(j,"_blank");z1||(e.location.href=j);}C.readyState=C.DONE,i1(),p(j);};if(C.readyState=C.INIT,i){j=t().createObjectURL(O),setTimeout(function(){r.href=j,r.download=b,s(r),i1(),p(j),C.readyState=C.DONE;});return}k1();},v=A.prototype,T=function(O,b,C1){return new A(O,b||O.name||"download",C1)};return typeof navigator<"u"&&navigator.msSaveOrOpenBlob?function(O,b,C1){return b=b||O.name||"download",C1||(O=g(O)),navigator.msSaveOrOpenBlob(O,b)}:(v.abort=function(){},v.readyState=v.INIT=0,v.WRITING=1,v.DONE=2,v.error=v.onwritestart=v.onprogress=v.onwrite=v.onabort=v.onerror=v.onwriteend=null,T)}})(typeof self<"u"&&self||typeof window<"u"&&window||this.content);module.exports?module.exports.saveAs=gt:typeof undefined<"u",(B1.isCordova||B1.isMeteorServer||B1.isNode)&&console.log("It looks like you are using the browser version of AlaSQL. Please use the alasql.fs.js file instead."),c.utils.saveAs=gt;}return new Ht("alasql"),c.use("alasql"),c});
|
|
3112
|
-
} (alasql_min$1, alasql_min$1.exports));
|
|
3113
|
-
return alasql_min$1.exports;
|
|
3114
|
-
}
|
|
3115
|
-
|
|
3116
|
-
var alasql_minExports = requireAlasql_min();
|
|
3117
|
-
var alasql = /*@__PURE__*/getDefaultExportFromCjs(alasql_minExports);
|
|
3118
|
-
|
|
3119
2830
|
// DEFLATE is a complex format; to read this code, you should probably check the RFC first:
|
|
3120
2831
|
// https://tools.ietf.org/html/rfc1951
|
|
3121
2832
|
// You may also wish to take a look at the guide I made about this program:
|
|
@@ -3552,16 +3263,45 @@ const Dataset = class {
|
|
|
3552
3263
|
* When false, body content is a compressed payload (`<hash>:<base64_gzip>`).
|
|
3553
3264
|
*/
|
|
3554
3265
|
this.raw = true;
|
|
3266
|
+
/**
|
|
3267
|
+
* Polling interval in **seconds** for URL mode.
|
|
3268
|
+
* When set and the body content is a URL, the component re-fetches
|
|
3269
|
+
* data at this interval. Has no effect for SQL, inline JSON or
|
|
3270
|
+
* compressed content. Set to `0` or leave unset to disable polling.
|
|
3271
|
+
*/
|
|
3272
|
+
this.interval = 0;
|
|
3555
3273
|
this.lastBodyHash = null;
|
|
3274
|
+
/** The query text last used to (re)create the SQL view, so we only `CREATE VIEW` when it actually changes. */
|
|
3275
|
+
this.lastViewQuery = null;
|
|
3276
|
+
/** The currently active URL (`null` when not in URL mode). */
|
|
3277
|
+
this.currentUrl = null;
|
|
3278
|
+
/** Timer ID for the polling interval. */
|
|
3279
|
+
this.pollTimerId = null;
|
|
3280
|
+
/** AbortController for cancelling in-flight fetch requests. */
|
|
3281
|
+
this.abortController = null;
|
|
3556
3282
|
withHasError.withComponentStatus(this);
|
|
3557
3283
|
this.errors = withHasError.withHasError(this);
|
|
3558
|
-
//
|
|
3559
|
-
this
|
|
3560
|
-
withDatasource(this, (name, data) => {
|
|
3561
|
-
this.database.tables[name] = { data };
|
|
3284
|
+
// Datasources already live in the shared db; just re-execute when any upstream notifies.
|
|
3285
|
+
withDatasource(this, () => {
|
|
3562
3286
|
this.executeQuery();
|
|
3563
3287
|
});
|
|
3564
3288
|
withBodyObserver.withBodyObserver(this, (data) => {
|
|
3289
|
+
const trimmed = data.trim();
|
|
3290
|
+
// --- URL mode ---
|
|
3291
|
+
if (this.isUrl(trimmed)) {
|
|
3292
|
+
if (trimmed === this.currentUrl)
|
|
3293
|
+
return;
|
|
3294
|
+
this.currentUrl = trimmed;
|
|
3295
|
+
this.lastBodyHash = null;
|
|
3296
|
+
this.fetchAndStore(trimmed);
|
|
3297
|
+
this.startPolling();
|
|
3298
|
+
return;
|
|
3299
|
+
}
|
|
3300
|
+
// --- Leaving URL mode → clean up ---
|
|
3301
|
+
if (this.currentUrl !== null) {
|
|
3302
|
+
this.clearPolling();
|
|
3303
|
+
this.currentUrl = null;
|
|
3304
|
+
}
|
|
3565
3305
|
let contentHash;
|
|
3566
3306
|
let body;
|
|
3567
3307
|
if (!this.raw && this.static) {
|
|
@@ -3589,39 +3329,179 @@ const Dataset = class {
|
|
|
3589
3329
|
executeQuery() {
|
|
3590
3330
|
if (!this.stores)
|
|
3591
3331
|
this.stores = contextProtocol.getStores(this.element);
|
|
3592
|
-
if (
|
|
3593
|
-
|
|
3594
|
-
|
|
3332
|
+
if (!this.query || !this.name)
|
|
3333
|
+
return;
|
|
3334
|
+
const db = this.stores.db.db;
|
|
3335
|
+
let result;
|
|
3336
|
+
if (this.static) {
|
|
3337
|
+
// Static JSON: parse and register as a table in the shared db.
|
|
3338
|
+
try {
|
|
3339
|
+
result = JSON.parse(this.query);
|
|
3340
|
+
}
|
|
3341
|
+
catch (e) {
|
|
3342
|
+
console.error("Failed to parse static dataset", e);
|
|
3343
|
+
result = [];
|
|
3344
|
+
}
|
|
3345
|
+
db.tables[this.name] = { data: Array.isArray(result) ? result : [] };
|
|
3346
|
+
this.lastViewQuery = null;
|
|
3347
|
+
}
|
|
3348
|
+
else {
|
|
3349
|
+
// SQL: register the dataset as a view in the shared db. Recreate only when the
|
|
3350
|
+
// query text changes; otherwise we just re-materialize so upstream data updates
|
|
3351
|
+
// flow through.
|
|
3352
|
+
if (this.lastViewQuery !== this.query) {
|
|
3353
|
+
// alasql tracks names in BOTH `db.tables` and `db.views`, and its
|
|
3354
|
+
// CREATE-conflict check looks at `db.tables`. Clean both locations
|
|
3355
|
+
// before creating so devtools "Edit as HTML" (which destroys the old
|
|
3356
|
+
// element and creates a new one without giving us a clean slate)
|
|
3357
|
+
// doesn't trip the "already exists" guard.
|
|
3595
3358
|
try {
|
|
3596
|
-
|
|
3359
|
+
db.exec(`DROP VIEW \`${this.name}\``);
|
|
3360
|
+
}
|
|
3361
|
+
catch (_e) {
|
|
3362
|
+
/* not registered as a view — fine */
|
|
3363
|
+
}
|
|
3364
|
+
if (db.tables[this.name] != null) {
|
|
3365
|
+
delete db.tables[this.name];
|
|
3366
|
+
}
|
|
3367
|
+
// @ts-ignore - views typing is loose
|
|
3368
|
+
if (db.views && db.views[this.name] != null) {
|
|
3369
|
+
// @ts-ignore
|
|
3370
|
+
delete db.views[this.name];
|
|
3371
|
+
}
|
|
3372
|
+
try {
|
|
3373
|
+
db.exec(`CREATE VIEW \`${this.name}\` AS ${this.query}`);
|
|
3374
|
+
this.lastViewQuery = this.query;
|
|
3597
3375
|
}
|
|
3598
3376
|
catch (e) {
|
|
3599
|
-
console.error("
|
|
3377
|
+
console.error("bn-dataset: failed to register SQL view", e, this.query);
|
|
3378
|
+
this.lastViewQuery = null;
|
|
3600
3379
|
result = [];
|
|
3380
|
+
this.publish(result);
|
|
3381
|
+
return;
|
|
3601
3382
|
}
|
|
3602
3383
|
}
|
|
3603
|
-
|
|
3604
|
-
result =
|
|
3384
|
+
try {
|
|
3385
|
+
result = db.exec(`SELECT * FROM \`${this.name}\``);
|
|
3605
3386
|
}
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
//
|
|
3609
|
-
|
|
3610
|
-
//
|
|
3611
|
-
|
|
3387
|
+
catch (_e) {
|
|
3388
|
+
// Most common cause: an upstream datasource referenced by the view hasn't
|
|
3389
|
+
// been registered yet (HTML parse/connectedCallback race). `withDatasource`
|
|
3390
|
+
// re-fires executeQuery on every upstream notify, so we'll retry then.
|
|
3391
|
+
// Skip publish so we don't clobber datasetsMeta with empty data.
|
|
3392
|
+
return;
|
|
3612
3393
|
}
|
|
3613
3394
|
}
|
|
3395
|
+
this.publish(result);
|
|
3396
|
+
}
|
|
3397
|
+
/** Notifies db subscribers and updates the derived `datasetsMeta` store. */
|
|
3398
|
+
publish(result) {
|
|
3399
|
+
if (this.latestResult === result) {
|
|
3400
|
+
// Even if the materialized object reference is unchanged, upstream data may have moved
|
|
3401
|
+
// (notably for views) — fire notify so consumers re-render against the fresh table state.
|
|
3402
|
+
this.stores.db.notify(this.name);
|
|
3403
|
+
return;
|
|
3404
|
+
}
|
|
3405
|
+
this.latestResult = result;
|
|
3406
|
+
this.stores.db.notify(this.name);
|
|
3407
|
+
// @ts-ignore - DatasetMeta is small derived metadata; kept as a @stencil/store per the plan.
|
|
3408
|
+
this.stores.datasetsMeta.set(this.name, calculateDatasetMeta(result));
|
|
3614
3409
|
}
|
|
3615
3410
|
nameUpdated() {
|
|
3616
3411
|
this.executeQuery();
|
|
3617
3412
|
}
|
|
3413
|
+
onIntervalChange() {
|
|
3414
|
+
if (this.currentUrl) {
|
|
3415
|
+
this.startPolling();
|
|
3416
|
+
}
|
|
3417
|
+
}
|
|
3418
|
+
disconnectedCallback() {
|
|
3419
|
+
var _a, _b;
|
|
3420
|
+
this.clearPolling();
|
|
3421
|
+
if (((_b = (_a = this.stores) === null || _a === void 0 ? void 0 : _a.db) === null || _b === void 0 ? void 0 : _b.db) && this.name) {
|
|
3422
|
+
const db = this.stores.db.db;
|
|
3423
|
+
try {
|
|
3424
|
+
db.exec(`DROP VIEW \`${this.name}\``);
|
|
3425
|
+
}
|
|
3426
|
+
catch (_e) {
|
|
3427
|
+
// not registered as a view — fine
|
|
3428
|
+
}
|
|
3429
|
+
if (db.tables[this.name] != null) {
|
|
3430
|
+
delete db.tables[this.name];
|
|
3431
|
+
}
|
|
3432
|
+
// @ts-ignore - views typing is loose
|
|
3433
|
+
if (db.views && db.views[this.name] != null) {
|
|
3434
|
+
// @ts-ignore
|
|
3435
|
+
delete db.views[this.name];
|
|
3436
|
+
}
|
|
3437
|
+
this.stores.db.notify(this.name);
|
|
3438
|
+
}
|
|
3439
|
+
}
|
|
3440
|
+
/**
|
|
3441
|
+
* Returns `true` if the text starts with `http://` or `https://`.
|
|
3442
|
+
*/
|
|
3443
|
+
isUrl(text) {
|
|
3444
|
+
return text.startsWith("http://") || text.startsWith("https://");
|
|
3445
|
+
}
|
|
3446
|
+
/**
|
|
3447
|
+
* Fetches JSON from the given URL and stores the result as the dataset.
|
|
3448
|
+
* Cancels any in-flight request before starting a new one.
|
|
3449
|
+
*/
|
|
3450
|
+
async fetchAndStore(url) {
|
|
3451
|
+
var _a;
|
|
3452
|
+
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
3453
|
+
this.abortController = new AbortController();
|
|
3454
|
+
if (!this.stores)
|
|
3455
|
+
this.stores = contextProtocol.getStores(this.element);
|
|
3456
|
+
try {
|
|
3457
|
+
const response = await fetch(url, { signal: this.abortController.signal });
|
|
3458
|
+
const json = await response.json();
|
|
3459
|
+
const db = this.stores.db.db;
|
|
3460
|
+
db.tables[this.name] = { data: Array.isArray(json) ? json : [] };
|
|
3461
|
+
this.lastViewQuery = null;
|
|
3462
|
+
this.publish(json);
|
|
3463
|
+
}
|
|
3464
|
+
catch (e) {
|
|
3465
|
+
if (e instanceof DOMException && e.name === "AbortError")
|
|
3466
|
+
return;
|
|
3467
|
+
console.error("bn-dataset: error fetching URL", e, url);
|
|
3468
|
+
const db = this.stores.db.db;
|
|
3469
|
+
db.tables[this.name] = { data: [] };
|
|
3470
|
+
this.lastViewQuery = null;
|
|
3471
|
+
this.publish([]);
|
|
3472
|
+
}
|
|
3473
|
+
}
|
|
3474
|
+
/** Stops the polling timer and cancels any in-flight fetch. */
|
|
3475
|
+
clearPolling() {
|
|
3476
|
+
var _a;
|
|
3477
|
+
if (this.pollTimerId !== null) {
|
|
3478
|
+
clearInterval(this.pollTimerId);
|
|
3479
|
+
this.pollTimerId = null;
|
|
3480
|
+
}
|
|
3481
|
+
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
3482
|
+
this.abortController = null;
|
|
3483
|
+
}
|
|
3484
|
+
/** Starts (or restarts) the polling timer if in URL mode with a positive interval. */
|
|
3485
|
+
startPolling() {
|
|
3486
|
+
this.clearPolling();
|
|
3487
|
+
if (this.currentUrl && this.interval > 0) {
|
|
3488
|
+
this.pollTimerId = setInterval(() => {
|
|
3489
|
+
if (this.currentUrl) {
|
|
3490
|
+
this.fetchAndStore(this.currentUrl);
|
|
3491
|
+
}
|
|
3492
|
+
}, this.interval * 1000);
|
|
3493
|
+
}
|
|
3494
|
+
}
|
|
3618
3495
|
render() {
|
|
3619
|
-
return index.h(index.Host, { key: '
|
|
3496
|
+
return index.h(index.Host, { key: 'fa02248ff99fc299f0ed7c7feae63063d071685a' });
|
|
3620
3497
|
}
|
|
3621
3498
|
get element() { return index.getElement(this); }
|
|
3622
3499
|
static get watchers() { return {
|
|
3623
3500
|
"name": [{
|
|
3624
3501
|
"nameUpdated": 0
|
|
3502
|
+
}],
|
|
3503
|
+
"interval": [{
|
|
3504
|
+
"onIntervalChange": 0
|
|
3625
3505
|
}]
|
|
3626
3506
|
}; }
|
|
3627
3507
|
};
|
|
@@ -3690,23 +3570,43 @@ const Datasource = class {
|
|
|
3690
3570
|
return;
|
|
3691
3571
|
this.lastHash = contentHash;
|
|
3692
3572
|
const json = JSON.parse(jsonString);
|
|
3693
|
-
|
|
3694
|
-
this.stores.datasources.set(this.name, json);
|
|
3573
|
+
this.publish(json);
|
|
3695
3574
|
}
|
|
3696
3575
|
catch (e) {
|
|
3697
3576
|
console.error("Error parsing datasource", e, String(data).slice(0, 200));
|
|
3698
|
-
|
|
3699
|
-
this.stores.datasources.set(this.name, []);
|
|
3577
|
+
this.publish([]);
|
|
3700
3578
|
}
|
|
3701
3579
|
});
|
|
3702
3580
|
}
|
|
3581
|
+
/**
|
|
3582
|
+
* Writes the parsed data into the shared alasql database (as a table named
|
|
3583
|
+
* after this datasource) and notifies subscribers.
|
|
3584
|
+
*/
|
|
3585
|
+
publish(json) {
|
|
3586
|
+
const db = this.stores.db.db;
|
|
3587
|
+
db.tables[this.name] = { data: Array.isArray(json) ? json : [] };
|
|
3588
|
+
this.stores.db.notify(this.name);
|
|
3589
|
+
}
|
|
3703
3590
|
onIntervalChange() {
|
|
3704
3591
|
if (this.currentUrl) {
|
|
3705
3592
|
this.startPolling();
|
|
3706
3593
|
}
|
|
3707
3594
|
}
|
|
3708
3595
|
disconnectedCallback() {
|
|
3596
|
+
var _a, _b;
|
|
3709
3597
|
this.clearPolling();
|
|
3598
|
+
const db = (_b = (_a = this.stores) === null || _a === void 0 ? void 0 : _a.db) === null || _b === void 0 ? void 0 : _b.db;
|
|
3599
|
+
if (db && this.name) {
|
|
3600
|
+
if (db.tables[this.name] != null) {
|
|
3601
|
+
delete db.tables[this.name];
|
|
3602
|
+
}
|
|
3603
|
+
// @ts-ignore - views typing is loose
|
|
3604
|
+
if (db.views && db.views[this.name] != null) {
|
|
3605
|
+
// @ts-ignore
|
|
3606
|
+
delete db.views[this.name];
|
|
3607
|
+
}
|
|
3608
|
+
this.stores.db.notify(this.name);
|
|
3609
|
+
}
|
|
3710
3610
|
}
|
|
3711
3611
|
/**
|
|
3712
3612
|
* Returns `true` if the text starts with `http://` or `https://`.
|
|
@@ -3727,15 +3627,13 @@ const Datasource = class {
|
|
|
3727
3627
|
try {
|
|
3728
3628
|
const response = await fetch(url, { signal: this.abortController.signal });
|
|
3729
3629
|
const json = await response.json();
|
|
3730
|
-
|
|
3731
|
-
this.stores.datasources.set(this.name, json);
|
|
3630
|
+
this.publish(json);
|
|
3732
3631
|
}
|
|
3733
3632
|
catch (e) {
|
|
3734
3633
|
if (e instanceof DOMException && e.name === "AbortError")
|
|
3735
3634
|
return;
|
|
3736
3635
|
console.error("bn-datasource: error fetching URL", e, url);
|
|
3737
|
-
|
|
3738
|
-
this.stores.datasources.set(this.name, []);
|
|
3636
|
+
this.publish([]);
|
|
3739
3637
|
}
|
|
3740
3638
|
}
|
|
3741
3639
|
/** Stops the polling timer and cancels any in-flight fetch. */
|
|
@@ -3760,7 +3658,7 @@ const Datasource = class {
|
|
|
3760
3658
|
}
|
|
3761
3659
|
}
|
|
3762
3660
|
render() {
|
|
3763
|
-
return index.h(index.Host, { key: '
|
|
3661
|
+
return index.h(index.Host, { key: '4c79b32d893865fe7c62118d4186b8175294636f' });
|
|
3764
3662
|
}
|
|
3765
3663
|
get element() { return index.getElement(this); }
|
|
3766
3664
|
static get watchers() { return {
|
|
@@ -4617,7 +4515,10 @@ const Table$1 = class Table {
|
|
|
4617
4515
|
this.layoutObserver = null;
|
|
4618
4516
|
/** Last parent width seen, used to suppress ResizeObserver noise. */
|
|
4619
4517
|
this._lastScaledParentWidth = 0;
|
|
4620
|
-
|
|
4518
|
+
/** Active dataset name (the last subscribed dataset to fire `onUpdate`). */
|
|
4519
|
+
this.datasetName = "";
|
|
4520
|
+
/** Bumped on every data update so Stencil re-renders even when the name is unchanged. */
|
|
4521
|
+
this.dataVersion = 0;
|
|
4621
4522
|
this.datasetMeta = null;
|
|
4622
4523
|
this.appliedScaleFactor = 1;
|
|
4623
4524
|
/**
|
|
@@ -4844,8 +4745,12 @@ const Table$1 = class Table {
|
|
|
4844
4745
|
this.errors = withHasError.withHasError(this);
|
|
4845
4746
|
withScalingGroup(this);
|
|
4846
4747
|
this.componentStyle = withStyled.withComponentStyle(this);
|
|
4847
|
-
scaling.withDataset(this, (
|
|
4848
|
-
|
|
4748
|
+
scaling.withDataset(this, (name, _data) => {
|
|
4749
|
+
// Helpers query the shared alasql database directly by name; we just
|
|
4750
|
+
// record the active dataset and bump a version counter so Stencil
|
|
4751
|
+
// re-renders when the data changes.
|
|
4752
|
+
this.datasetName = (name === null || name === void 0 ? void 0 : name.startsWith("$")) ? name.substring(1) : name || "";
|
|
4753
|
+
this.dataVersion = this.dataVersion + 1;
|
|
4849
4754
|
}, (_name, meta) => {
|
|
4850
4755
|
this.datasetMeta = meta;
|
|
4851
4756
|
});
|
|
@@ -5557,7 +5462,7 @@ const Table$1 = class Table {
|
|
|
5557
5462
|
render() {
|
|
5558
5463
|
const fontStyles = this.getFontStyles();
|
|
5559
5464
|
const effectiveFactor = this.getEffectiveScaleFactor();
|
|
5560
|
-
return (index.h(index.Host, { key: '
|
|
5465
|
+
return (index.h(index.Host, { key: '469aa0d5b00e111af96d33764640fa92eb5ed5cc', style: fontStyles }, index.h("div", { key: 'f02443601b7e644c243b48ad09af411a8460b659' }, index.h("ibcs-table", { key: '242ee74a5715c83a267e3f02daab09b9baca0c57', tableName: this.datasetName, dataVersion: this.dataVersion, "table-title": this.prepareTableTitle(), scenarios: this.prepareScenarios(), "scenarios-data-format": this.prepareDataFormat(), grouped: this.prepareGrouped(), limit: this.prepareLimit(), showGroupTitle: this.prepareShowGroupTitle(), thereof: this.prepareThereOf(), partof: this.preparePartOf(), order: this.prepareOrder(), categorythereof: this.prepareColumnThereOf(), type: this.prepareTableType(), "category-width": this.prepareCategoryWidth(), dataFormatDigits: this.prepareDataFormatDigits(), i18n: this.prepareI18n(), "i18n-mode": this.prepareI18nMode(), "measure-scale": this.prepareMeasureScale(), "measure-type": this.prepareMeasureType(), "measure-unit": this.prepareMeasureUnit(), showMeasureScale: this.prepareShowMeasureScale(), filter: this.prepareFilter(), barColumns: this.prepareBarColumns(), barColumnMaxWidth: this.prepareBarColumnWidth(), unitScaling: this.prepareUnitScaling(), percentageScaling: this.preparePercentageScaling(), scaleFactor: effectiveFactor }))));
|
|
5561
5466
|
}
|
|
5562
5467
|
get element() { return index.getElement(this); }
|
|
5563
5468
|
static get watchers() { return {
|
|
@@ -5861,8 +5766,8 @@ const Title$1 = class Title {
|
|
|
5861
5766
|
return null;
|
|
5862
5767
|
}
|
|
5863
5768
|
return {
|
|
5864
|
-
start:
|
|
5865
|
-
end:
|
|
5769
|
+
start: contextProtocol.DateTime.fromISO(this.dateStart),
|
|
5770
|
+
end: contextProtocol.DateTime.fromISO(this.dateEnd),
|
|
5866
5771
|
format: withStyled.DateDistance[(_a = this.dateFormat) === null || _a === void 0 ? void 0 : _a.toUpperCase()],
|
|
5867
5772
|
link: withStyled.DateLink[(_b = this.dateLink) === null || _b === void 0 ? void 0 : _b.toUpperCase()],
|
|
5868
5773
|
};
|
|
@@ -14046,8 +13951,8 @@ class DataAnalyzer {
|
|
|
14046
13951
|
* are considered; variance columns are excluded.
|
|
14047
13952
|
* - `null` with data: defaults to GREATEST auto-detection
|
|
14048
13953
|
*/
|
|
14049
|
-
static calculateMeasureScale(
|
|
14050
|
-
var _a;
|
|
13954
|
+
static calculateMeasureScale(db, fromExpr, scenarios, mode) {
|
|
13955
|
+
var _a, _b;
|
|
14051
13956
|
if (mode === "_") {
|
|
14052
13957
|
return new SiPrefix();
|
|
14053
13958
|
}
|
|
@@ -14056,7 +13961,7 @@ class DataAnalyzer {
|
|
|
14056
13961
|
return this.lookupPrefix(mode);
|
|
14057
13962
|
}
|
|
14058
13963
|
}
|
|
14059
|
-
if (scenarios.length === 0) {
|
|
13964
|
+
if (scenarios.length === 0 || !fromExpr) {
|
|
14060
13965
|
return new SiPrefix();
|
|
14061
13966
|
}
|
|
14062
13967
|
// filtering wordlenght == 3, so variances are not considered
|
|
@@ -14064,18 +13969,25 @@ class DataAnalyzer {
|
|
|
14064
13969
|
.filter((word) => word.length === 3)
|
|
14065
13970
|
.map((x) => "ABS(" + x + ")")
|
|
14066
13971
|
.toString()})) as prefixvalue
|
|
14067
|
-
FROM
|
|
13972
|
+
FROM ${fromExpr}`;
|
|
14068
13973
|
const queryMin = `SELECT MIN(LEAST(${scenarios
|
|
14069
13974
|
.filter((word) => word.length === 3)
|
|
14070
13975
|
.map((x) => "ABS(" + x + ")")
|
|
14071
13976
|
.toString()})) as prefixvalue
|
|
14072
|
-
FROM
|
|
13977
|
+
FROM ${fromExpr}`;
|
|
14073
13978
|
let query = queryMax;
|
|
14074
13979
|
if ((mode === null || mode === void 0 ? void 0 : mode.toUpperCase()) === "LEAST") {
|
|
14075
13980
|
query = queryMin;
|
|
14076
13981
|
}
|
|
14077
|
-
|
|
14078
|
-
|
|
13982
|
+
let num;
|
|
13983
|
+
try {
|
|
13984
|
+
const result = db.exec(query);
|
|
13985
|
+
num = (_b = (_a = result[0]) === null || _a === void 0 ? void 0 : _a.prefixvalue) !== null && _b !== void 0 ? _b : 0;
|
|
13986
|
+
}
|
|
13987
|
+
catch (e) {
|
|
13988
|
+
console.error("DataAnalyzer: measure-scale query failed", query, e);
|
|
13989
|
+
return new SiPrefix();
|
|
13990
|
+
}
|
|
14079
13991
|
return this.determinePrefix(Math.abs(num));
|
|
14080
13992
|
}
|
|
14081
13993
|
/** Maps an absolute numeric value to the best-fitting SI prefix based on digit count. */
|
|
@@ -14147,15 +14059,16 @@ class StructureChartComponentConfig {
|
|
|
14147
14059
|
/**
|
|
14148
14060
|
* Converts untyped JSON into a validated {@link StructureChartComponentConfig}.
|
|
14149
14061
|
*
|
|
14150
|
-
*
|
|
14062
|
+
* Reads from the shared alasql database for measure-scale auto-calculation.
|
|
14151
14063
|
*/
|
|
14152
14064
|
class StructureChartComponentConfigAdapter {
|
|
14153
|
-
constructor(dataRowAdapter, orderAdapter, stringAdapter, dataFormatDigitsAdapter,
|
|
14065
|
+
constructor(dataRowAdapter, orderAdapter, stringAdapter, dataFormatDigitsAdapter, db, fromExpr) {
|
|
14154
14066
|
this.dataRowAdapter = dataRowAdapter;
|
|
14155
14067
|
this.orderAdapter = orderAdapter;
|
|
14156
14068
|
this.stringAdapter = stringAdapter;
|
|
14157
14069
|
this.dataFormatDigitsAdapter = dataFormatDigitsAdapter;
|
|
14158
|
-
this.
|
|
14070
|
+
this.db = db;
|
|
14071
|
+
this.fromExpr = fromExpr;
|
|
14159
14072
|
}
|
|
14160
14073
|
adapt(data) {
|
|
14161
14074
|
const dataSet = withStyled.AdapterUtils.adaptArray(data.data, this.dataRowAdapter);
|
|
@@ -14189,7 +14102,7 @@ class StructureChartComponentConfigAdapter {
|
|
|
14189
14102
|
config.filter = data.filter.trim();
|
|
14190
14103
|
}
|
|
14191
14104
|
if (withStyled.CompareUtil.isExisting(data.measureScale)) {
|
|
14192
|
-
config.measureScale = DataAnalyzer.calculateMeasureScale(this.
|
|
14105
|
+
config.measureScale = DataAnalyzer.calculateMeasureScale(this.db, this.fromExpr, config.scenarios, data.measureScale);
|
|
14193
14106
|
}
|
|
14194
14107
|
if (withStyled.CompareUtil.isString(data.measureUnit)) {
|
|
14195
14108
|
config.measureUnit = data.measureUnit;
|
|
@@ -15746,7 +15659,7 @@ class IBCSRuleSet {
|
|
|
15746
15659
|
* when bars exceed the container width.
|
|
15747
15660
|
*/
|
|
15748
15661
|
class StructureChart {
|
|
15749
|
-
constructor(ruleSet, config, styles) {
|
|
15662
|
+
constructor(ruleSet, db, tableName, config, styles) {
|
|
15750
15663
|
this.dataModel = [];
|
|
15751
15664
|
this.variancesDataModel = [];
|
|
15752
15665
|
this.title = "";
|
|
@@ -15759,7 +15672,6 @@ class StructureChart {
|
|
|
15759
15672
|
this.hideCategories = false;
|
|
15760
15673
|
this.axisScenario = Scenario$1.AC1;
|
|
15761
15674
|
this.CSS_CATEGORIES = "categories";
|
|
15762
|
-
this.preparedDataSet = [];
|
|
15763
15675
|
this.state = FactoryState$2.DIRTY;
|
|
15764
15676
|
this.titleLength = 0;
|
|
15765
15677
|
this.leftSideOffsetForHorizontalSync = 0;
|
|
@@ -15770,7 +15682,10 @@ class StructureChart {
|
|
|
15770
15682
|
this.stackConfig = null;
|
|
15771
15683
|
this.overflowConfig = null;
|
|
15772
15684
|
this.highestStackedTotal = 0;
|
|
15773
|
-
this.
|
|
15685
|
+
this.fromExpr = "";
|
|
15686
|
+
this.rowCount = 0;
|
|
15687
|
+
this.db = db;
|
|
15688
|
+
this.tableName = tableName;
|
|
15774
15689
|
this.ruleSet = ruleSet || new IBCSRuleSet();
|
|
15775
15690
|
this.i18n = this.createI18n(new Map());
|
|
15776
15691
|
this.styles = styles;
|
|
@@ -15789,11 +15704,6 @@ class StructureChart {
|
|
|
15789
15704
|
}
|
|
15790
15705
|
return new ElementPositions$1(new Padding$2(this.styles.padding), this.styles.scaleFactors, this.styles.fontStyles.size, this.dataModel.length, this.leftSideOffsetForHorizontalSync, this.titleLength, leftSideWidth, categoryWidth);
|
|
15791
15706
|
}
|
|
15792
|
-
initSQLFunctions() {
|
|
15793
|
-
alasql.fn.transformOperator = function (a) {
|
|
15794
|
-
return a === "-" ? -1 : 1;
|
|
15795
|
-
};
|
|
15796
|
-
}
|
|
15797
15707
|
setStyles(newStyle) {
|
|
15798
15708
|
this.styles = newStyle;
|
|
15799
15709
|
}
|
|
@@ -15805,7 +15715,7 @@ class StructureChart {
|
|
|
15805
15715
|
this.limit = config.limit;
|
|
15806
15716
|
this.pixelPerUnit = config.pixelPerUnit || 1;
|
|
15807
15717
|
this.pixelPerPercentage = config.pixelPerPercentage || 100;
|
|
15808
|
-
this.
|
|
15718
|
+
this.setSource(config.filter);
|
|
15809
15719
|
this.dataModel = this.populateModel(config.scenarios, config.level, config.sortOrder);
|
|
15810
15720
|
// Populate per-dimension stack segments when stacking by a data dimension
|
|
15811
15721
|
if (config.stackConfig && config.stackConfig.by !== withStyled.StackBy.SCENARIOS) {
|
|
@@ -15885,31 +15795,25 @@ class StructureChart {
|
|
|
15885
15795
|
return new Map([...defaultI18n, ...i18n]);
|
|
15886
15796
|
}
|
|
15887
15797
|
/**
|
|
15888
|
-
*
|
|
15889
|
-
*
|
|
15890
|
-
*
|
|
15891
|
-
*
|
|
15892
|
-
* @param data
|
|
15893
|
-
* @param filter - data filter
|
|
15894
|
-
* @param customColumnNameMap Custon ColumnNameMap can be used if data uses non standard columnames
|
|
15798
|
+
* Resolves the dataset (a table or view in the shared alasql database) and
|
|
15799
|
+
* caches its row count. All subsequent queries reference the source by name,
|
|
15800
|
+
* so alasql doesn't have to ingest a fresh array per call.
|
|
15895
15801
|
*/
|
|
15896
|
-
|
|
15897
|
-
|
|
15802
|
+
setSource(filter) {
|
|
15803
|
+
var _a, _b;
|
|
15804
|
+
this.state = FactoryState$2.DIRTY;
|
|
15805
|
+
if (!this.tableName) {
|
|
15806
|
+
this.fromExpr = "";
|
|
15807
|
+
this.rowCount = 0;
|
|
15898
15808
|
return;
|
|
15899
15809
|
}
|
|
15900
|
-
this.
|
|
15901
|
-
|
|
15902
|
-
|
|
15903
|
-
|
|
15904
|
-
this.preparedDataSet = alasql(`SELECT * FROM ? WHERE ${filter}`, [data]);
|
|
15905
|
-
}
|
|
15906
|
-
catch (e) {
|
|
15907
|
-
console.error("StructureChart: filter query failed, using unfiltered data", filter, e);
|
|
15908
|
-
this.preparedDataSet = data;
|
|
15909
|
-
}
|
|
15810
|
+
this.fromExpr = contextProtocol.buildFromExpr(this.tableName, filter);
|
|
15811
|
+
try {
|
|
15812
|
+
const r = this.db.exec(`SELECT COUNT(*) AS cnt FROM ${this.fromExpr}`);
|
|
15813
|
+
this.rowCount = ((_b = (_a = r[0]) === null || _a === void 0 ? void 0 : _a.cnt) !== null && _b !== void 0 ? _b : 0);
|
|
15910
15814
|
}
|
|
15911
|
-
|
|
15912
|
-
this.
|
|
15815
|
+
catch (_e) {
|
|
15816
|
+
this.rowCount = 0;
|
|
15913
15817
|
}
|
|
15914
15818
|
}
|
|
15915
15819
|
/**
|
|
@@ -16019,25 +15923,31 @@ class StructureChart {
|
|
|
16019
15923
|
return result;
|
|
16020
15924
|
}
|
|
16021
15925
|
populateModel(selectedScenarios, level, sortOrder) {
|
|
16022
|
-
|
|
16023
|
-
if (((_a = this.preparedDataSet) === null || _a === void 0 ? void 0 : _a.length) === 0) {
|
|
15926
|
+
if (this.rowCount === 0 || !this.fromExpr) {
|
|
16024
15927
|
return [];
|
|
16025
15928
|
}
|
|
16026
15929
|
const dataModel = [];
|
|
16027
15930
|
const orderStr = this.createOrderStr(level, sortOrder);
|
|
16028
15931
|
const select = this.createSelectString(level, sortOrder);
|
|
16029
15932
|
const groupByStr = this.createGroupByStr(level, sortOrder);
|
|
16030
|
-
|
|
16031
|
-
|
|
16032
|
-
|
|
16033
|
-
|
|
16034
|
-
|
|
16035
|
-
|
|
16036
|
-
|
|
16037
|
-
|
|
16038
|
-
|
|
15933
|
+
let result;
|
|
15934
|
+
try {
|
|
15935
|
+
result = this.db.exec(`SELECT ${select} ${selectedScenarios.length > 0
|
|
15936
|
+
? "," +
|
|
15937
|
+
selectedScenarios
|
|
15938
|
+
.map((scenario) => {
|
|
15939
|
+
return `SUM(${scenario} * transformOperator(operation)) as ${scenario}, COUNT(ISNULL(${scenario})) as ${scenario}_cnt`;
|
|
15940
|
+
})
|
|
15941
|
+
.join(",")
|
|
15942
|
+
: ""}
|
|
15943
|
+
FROM ${this.fromExpr}
|
|
16039
15944
|
GROUP BY ${groupByStr}
|
|
16040
|
-
ORDER BY ${orderStr}
|
|
15945
|
+
ORDER BY ${orderStr}`);
|
|
15946
|
+
}
|
|
15947
|
+
catch (e) {
|
|
15948
|
+
console.error("StructureChart: populateModel query failed", e);
|
|
15949
|
+
return [];
|
|
15950
|
+
}
|
|
16041
15951
|
this.detectNaNCells(selectedScenarios, result);
|
|
16042
15952
|
this.createDataRows(result, dataModel, selectedScenarios);
|
|
16043
15953
|
this.crateRESTRow(result, selectedScenarios, dataModel);
|
|
@@ -16655,8 +16565,7 @@ class StructureChart {
|
|
|
16655
16565
|
* at the stack dimension level and attach stackSegments to each dataModel row.
|
|
16656
16566
|
*/
|
|
16657
16567
|
populateDimensionStackSegments(scenarios, _stackConfig, level) {
|
|
16658
|
-
|
|
16659
|
-
if (((_a = this.preparedDataSet) === null || _a === void 0 ? void 0 : _a.length) === 0 || scenarios.length === 0)
|
|
16568
|
+
if (this.rowCount === 0 || !this.fromExpr || scenarios.length === 0)
|
|
16660
16569
|
return;
|
|
16661
16570
|
// Derive stack column from level: stack by the next-lower hierarchy dimension
|
|
16662
16571
|
const nextLowerDimension = {
|
|
@@ -16671,9 +16580,16 @@ class StructureChart {
|
|
|
16671
16580
|
// The display level column (what each bar represents)
|
|
16672
16581
|
const displayColumn = level.toString(); // e.g. 'rowGroup', 'category', 'subCategory'
|
|
16673
16582
|
const scenario = scenarios[0]; // dimension stacking uses first scenario
|
|
16674
|
-
|
|
16675
|
-
|
|
16676
|
-
|
|
16583
|
+
let result;
|
|
16584
|
+
try {
|
|
16585
|
+
result = this.db.exec(`SELECT [${displayColumn}] as displayGroup, [${stackColumn}] as stackLabel, ` +
|
|
16586
|
+
`SUM([${scenario}] * transformOperator(operation)) as stackValue ` +
|
|
16587
|
+
`FROM ${this.fromExpr} GROUP BY [${displayColumn}], [${stackColumn}]`);
|
|
16588
|
+
}
|
|
16589
|
+
catch (e) {
|
|
16590
|
+
console.error("StructureChart: dimension-stack query failed", e);
|
|
16591
|
+
return;
|
|
16592
|
+
}
|
|
16677
16593
|
// Group results by displayGroup
|
|
16678
16594
|
const groupMap = new Map();
|
|
16679
16595
|
for (const row of result) {
|
|
@@ -17004,7 +16920,10 @@ const bnChartStructureCss = () => `:host{display:inline-block;position:relative;
|
|
|
17004
16920
|
const IbcsChartStructure = class {
|
|
17005
16921
|
constructor(hostRef) {
|
|
17006
16922
|
index.registerInstance(this, hostRef);
|
|
17007
|
-
|
|
16923
|
+
/** Name of the dataset (table or view in the shared alasql database). */
|
|
16924
|
+
this.tableName = "";
|
|
16925
|
+
/** Bumped by `bn-chart-structure` when the dataset changes; triggers re-render. */
|
|
16926
|
+
this.dataVersion = 0;
|
|
17008
16927
|
this.chartTitle = "";
|
|
17009
16928
|
this.scenarios = [];
|
|
17010
16929
|
this.variances = [];
|
|
@@ -17026,6 +16945,11 @@ const IbcsChartStructure = class {
|
|
|
17026
16945
|
this.stackConfig = null;
|
|
17027
16946
|
this.parentDimensions = { width: 0, height: 0 };
|
|
17028
16947
|
}
|
|
16948
|
+
getDb() {
|
|
16949
|
+
if (!this.stores)
|
|
16950
|
+
this.stores = contextProtocol.getStores(this.element);
|
|
16951
|
+
return this.stores.db.db;
|
|
16952
|
+
}
|
|
17029
16953
|
render() {
|
|
17030
16954
|
var _a, _b, _c;
|
|
17031
16955
|
if (this.chart === undefined) {
|
|
@@ -17039,9 +16963,10 @@ const IbcsChartStructure = class {
|
|
|
17039
16963
|
}
|
|
17040
16964
|
async componentWillLoad() {
|
|
17041
16965
|
var _a;
|
|
16966
|
+
const db = this.getDb();
|
|
17042
16967
|
const config = this.prepareConfig();
|
|
17043
16968
|
const styles = this.prepareStyle();
|
|
17044
|
-
this.chart = new StructureChart(new IBCSRuleSet(), config, styles);
|
|
16969
|
+
this.chart = new StructureChart(new IBCSRuleSet(), db, this.tableName, config, styles);
|
|
17045
16970
|
this.chart.setI18n(this.i18n);
|
|
17046
16971
|
this.autoFitScaling(config, styles);
|
|
17047
16972
|
this.chart.setAvailableWidth(((_a = this.parentDimensions) === null || _a === void 0 ? void 0 : _a.width) || 0);
|
|
@@ -17078,12 +17003,13 @@ const IbcsChartStructure = class {
|
|
|
17078
17003
|
return; // Both explicit — nothing to auto-fit
|
|
17079
17004
|
}
|
|
17080
17005
|
const targetWidth = (_a = this.parentDimensions) === null || _a === void 0 ? void 0 : _a.width;
|
|
17006
|
+
const db = this.getDb();
|
|
17081
17007
|
if (!targetWidth || targetWidth <= 0) {
|
|
17082
17008
|
if (autoUnit)
|
|
17083
17009
|
config.pixelPerUnit = 1;
|
|
17084
17010
|
if (autoPercent)
|
|
17085
17011
|
config.pixelPerPercentage = 50;
|
|
17086
|
-
this.chart = new StructureChart(new IBCSRuleSet(), config, styles);
|
|
17012
|
+
this.chart = new StructureChart(new IBCSRuleSet(), db, this.tableName, config, styles);
|
|
17087
17013
|
this.chart.setI18n(this.i18n);
|
|
17088
17014
|
return;
|
|
17089
17015
|
}
|
|
@@ -17092,7 +17018,7 @@ const IbcsChartStructure = class {
|
|
|
17092
17018
|
config.pixelPerUnit = 1;
|
|
17093
17019
|
if (autoPercent)
|
|
17094
17020
|
config.pixelPerPercentage = 1;
|
|
17095
|
-
this.chart = new StructureChart(new IBCSRuleSet(), config, styles);
|
|
17021
|
+
this.chart = new StructureChart(new IBCSRuleSet(), db, this.tableName, config, styles);
|
|
17096
17022
|
this.chart.setI18n(this.i18n);
|
|
17097
17023
|
this.chart.toString();
|
|
17098
17024
|
const svgWidth = this.chart.getAllocatedCanvasWidth();
|
|
@@ -17117,7 +17043,7 @@ const IbcsChartStructure = class {
|
|
|
17117
17043
|
config.pixelPerPercentage = (targetWidth * 0.9) / svgWidth;
|
|
17118
17044
|
}
|
|
17119
17045
|
// Second pass with the corrected scaling
|
|
17120
|
-
this.chart = new StructureChart(new IBCSRuleSet(), config, styles);
|
|
17046
|
+
this.chart = new StructureChart(new IBCSRuleSet(), db, this.tableName, config, styles);
|
|
17121
17047
|
this.chart.setI18n(this.i18n);
|
|
17122
17048
|
}
|
|
17123
17049
|
async componentWillRender() {
|
|
@@ -17141,8 +17067,9 @@ const IbcsChartStructure = class {
|
|
|
17141
17067
|
// }
|
|
17142
17068
|
}
|
|
17143
17069
|
prepareConfig() {
|
|
17144
|
-
|
|
17145
|
-
|
|
17070
|
+
const db = this.getDb();
|
|
17071
|
+
const fromExpr = this.tableName ? contextProtocol.buildFromExpr(this.tableName, this.filter) : "";
|
|
17072
|
+
return new StructureChartComponentConfigAdapter(new StructureChartDataRowAdapter(), new withStyled.OrderAdapter(new StringAdapter()), new StringAdapter(), new DataFormatDigitsAdapter(), db, fromExpr).adapt({
|
|
17146
17073
|
scenarios: this.scenarios,
|
|
17147
17074
|
variances: this.variances,
|
|
17148
17075
|
title: this.chartTitle,
|
|
@@ -18129,7 +18056,9 @@ class TimeChartDataRowAdapter {
|
|
|
18129
18056
|
return dataRow;
|
|
18130
18057
|
}
|
|
18131
18058
|
parseDateString(date) {
|
|
18132
|
-
|
|
18059
|
+
if (typeof date !== "string")
|
|
18060
|
+
return undefined;
|
|
18061
|
+
const timestamp = contextProtocol.DateTime.fromISO(date);
|
|
18133
18062
|
if (timestamp.isValid) {
|
|
18134
18063
|
return timestamp;
|
|
18135
18064
|
}
|
|
@@ -19651,7 +19580,7 @@ var VarianceType;
|
|
|
19651
19580
|
* Auto chart mode: when dataModel.length exceeds maxBars, switches from bar to line.
|
|
19652
19581
|
*/
|
|
19653
19582
|
class TimeChart {
|
|
19654
|
-
constructor(ruleSet, config, styles, availableWidth = 0) {
|
|
19583
|
+
constructor(ruleSet, db, tableName, config, styles, availableWidth = 0) {
|
|
19655
19584
|
this.CSS_CATEGORIES = "categories";
|
|
19656
19585
|
this.dataModel = [];
|
|
19657
19586
|
this.variancesDataModel = [];
|
|
@@ -19664,7 +19593,8 @@ class TimeChart {
|
|
|
19664
19593
|
this.pixelPerPercentage = 1;
|
|
19665
19594
|
this.hideAxisLabels = false;
|
|
19666
19595
|
this.axisScenario = Scenario.AC1;
|
|
19667
|
-
this.
|
|
19596
|
+
this.fromExpr = "";
|
|
19597
|
+
this.rowCount = 0;
|
|
19668
19598
|
this.axisCategoryArea = { width: 0, height: 0 };
|
|
19669
19599
|
this.scenariosArea = { width: 0, height: 0 };
|
|
19670
19600
|
this.state = FactoryState$1.DIRTY;
|
|
@@ -19686,7 +19616,8 @@ class TimeChart {
|
|
|
19686
19616
|
this.availableWidth = 0;
|
|
19687
19617
|
this.overflowConfig = null;
|
|
19688
19618
|
this.lastScenarios = [];
|
|
19689
|
-
this.
|
|
19619
|
+
this.db = db;
|
|
19620
|
+
this.tableName = tableName;
|
|
19690
19621
|
this.ruleSet = ruleSet || new IBCSRuleSet();
|
|
19691
19622
|
this.i18n = this.createI18n(new Map());
|
|
19692
19623
|
this.styles = styles;
|
|
@@ -19697,18 +19628,6 @@ class TimeChart {
|
|
|
19697
19628
|
updatePosition(scenarios) {
|
|
19698
19629
|
this.position = this.createElementPosition(scenarios);
|
|
19699
19630
|
}
|
|
19700
|
-
initSQLFunctions() {
|
|
19701
|
-
alasql.fn.transformOperator = function (a) {
|
|
19702
|
-
return a === "-" ? -1 : 1;
|
|
19703
|
-
};
|
|
19704
|
-
// @ts-ignore
|
|
19705
|
-
alasql.fn.normalizeDate = function (date, normalizationLevel, _locale) {
|
|
19706
|
-
if (date === undefined || !date.isValid) {
|
|
19707
|
-
return undefined;
|
|
19708
|
-
}
|
|
19709
|
-
return date.startOf(normalizationLevel);
|
|
19710
|
-
};
|
|
19711
|
-
}
|
|
19712
19631
|
setStyles(newStyle) {
|
|
19713
19632
|
this.styles = newStyle;
|
|
19714
19633
|
}
|
|
@@ -19775,7 +19694,7 @@ class TimeChart {
|
|
|
19775
19694
|
var _a;
|
|
19776
19695
|
this.state = FactoryState$1.DIRTY;
|
|
19777
19696
|
this.sortScenariosbyVisualisationRules(config);
|
|
19778
|
-
this.
|
|
19697
|
+
this.setSource(config.filter);
|
|
19779
19698
|
this.hideAxisLabels = config.hideAxisLabels || false;
|
|
19780
19699
|
this.pixelPerUnit = config.pixelPerUnit;
|
|
19781
19700
|
this.pixelPerPercentage = config.pixelPerPercentage;
|
|
@@ -19834,31 +19753,25 @@ class TimeChart {
|
|
|
19834
19753
|
this.i18n = this.createI18n(i18n);
|
|
19835
19754
|
}
|
|
19836
19755
|
/**
|
|
19837
|
-
*
|
|
19838
|
-
*
|
|
19839
|
-
*
|
|
19840
|
-
*
|
|
19841
|
-
* @param data
|
|
19842
|
-
* @param filter - data filter
|
|
19843
|
-
* @param customColumnNameMap Custon ColumnNameMap can be used if data uses non standard columnames
|
|
19756
|
+
* Resolves the dataset (a table or view in the shared alasql database) and
|
|
19757
|
+
* caches its row count. Subsequent queries reference the source by name —
|
|
19758
|
+
* alasql doesn't have to ingest a fresh array per call.
|
|
19844
19759
|
*/
|
|
19845
|
-
|
|
19846
|
-
|
|
19760
|
+
setSource(filter) {
|
|
19761
|
+
var _a, _b;
|
|
19762
|
+
this.state = FactoryState$1.DIRTY;
|
|
19763
|
+
if (!this.tableName) {
|
|
19764
|
+
this.fromExpr = "";
|
|
19765
|
+
this.rowCount = 0;
|
|
19847
19766
|
return;
|
|
19848
19767
|
}
|
|
19849
|
-
this.
|
|
19850
|
-
|
|
19851
|
-
|
|
19852
|
-
|
|
19853
|
-
this.preparedDataSet = alasql(`SELECT * FROM ? WHERE ${filter}`, [data]);
|
|
19854
|
-
}
|
|
19855
|
-
catch (e) {
|
|
19856
|
-
console.error("TimeChart: filter query failed, using unfiltered data", filter, e);
|
|
19857
|
-
this.preparedDataSet = data;
|
|
19858
|
-
}
|
|
19768
|
+
this.fromExpr = contextProtocol.buildFromExpr(this.tableName, filter);
|
|
19769
|
+
try {
|
|
19770
|
+
const r = this.db.exec(`SELECT COUNT(*) AS cnt FROM ${this.fromExpr}`);
|
|
19771
|
+
this.rowCount = ((_b = (_a = r[0]) === null || _a === void 0 ? void 0 : _a.cnt) !== null && _b !== void 0 ? _b : 0);
|
|
19859
19772
|
}
|
|
19860
|
-
|
|
19861
|
-
this.
|
|
19773
|
+
catch (_e) {
|
|
19774
|
+
this.rowCount = 0;
|
|
19862
19775
|
}
|
|
19863
19776
|
}
|
|
19864
19777
|
getAllocatedCanvasWidth() {
|
|
@@ -20117,8 +20030,7 @@ class TimeChart {
|
|
|
20117
20030
|
return result;
|
|
20118
20031
|
}
|
|
20119
20032
|
populateModel(selectedScenarios, dateInterval, _level, _sortOrder) {
|
|
20120
|
-
|
|
20121
|
-
if (((_a = this.preparedDataSet) === null || _a === void 0 ? void 0 : _a.length) === 0) {
|
|
20033
|
+
if (this.rowCount === 0 || !this.fromExpr) {
|
|
20122
20034
|
return [];
|
|
20123
20035
|
}
|
|
20124
20036
|
const select = ``;
|
|
@@ -20160,17 +20072,41 @@ class TimeChart {
|
|
|
20160
20072
|
return localDateInterval;
|
|
20161
20073
|
}
|
|
20162
20074
|
queryMinMaxDates() {
|
|
20163
|
-
var _a, _b
|
|
20164
|
-
|
|
20165
|
-
|
|
20075
|
+
var _a, _b;
|
|
20076
|
+
let result;
|
|
20077
|
+
try {
|
|
20078
|
+
result = this.db.exec(`SELECT MAX(${"date"}) as maxdate, MIN(${"date"}) as mindate FROM ${this.fromExpr}`);
|
|
20079
|
+
}
|
|
20080
|
+
catch (e) {
|
|
20081
|
+
console.error("TimeChart: min/max date query failed", e);
|
|
20082
|
+
return [{}];
|
|
20083
|
+
}
|
|
20084
|
+
// `date` rows in the shared db are typically ISO strings (raw JSON) or millis;
|
|
20085
|
+
// accept both so existing fixtures and live JSON data both work.
|
|
20166
20086
|
if (((_a = result[0]) === null || _a === void 0 ? void 0 : _a.mindate) != null) {
|
|
20167
|
-
result[0].mindate =
|
|
20087
|
+
result[0].mindate = TimeChart.coerceDateTime(result[0].mindate);
|
|
20168
20088
|
}
|
|
20169
|
-
if (((
|
|
20170
|
-
result[0].maxdate =
|
|
20089
|
+
if (((_b = result[0]) === null || _b === void 0 ? void 0 : _b.maxdate) != null) {
|
|
20090
|
+
result[0].maxdate = TimeChart.coerceDateTime(result[0].maxdate);
|
|
20171
20091
|
}
|
|
20172
20092
|
return result;
|
|
20173
20093
|
}
|
|
20094
|
+
static coerceDateTime(v) {
|
|
20095
|
+
if (v == null)
|
|
20096
|
+
return undefined;
|
|
20097
|
+
if (typeof v === "string") {
|
|
20098
|
+
const dt = contextProtocol.DateTime.fromISO(v);
|
|
20099
|
+
return dt.isValid ? dt : undefined;
|
|
20100
|
+
}
|
|
20101
|
+
if (typeof v === "number") {
|
|
20102
|
+
const dt = contextProtocol.DateTime.fromMillis(v);
|
|
20103
|
+
return dt.isValid ? dt : undefined;
|
|
20104
|
+
}
|
|
20105
|
+
if (typeof v.isValid === "boolean") {
|
|
20106
|
+
return v;
|
|
20107
|
+
}
|
|
20108
|
+
return undefined;
|
|
20109
|
+
}
|
|
20174
20110
|
queryDataSet(dateInterval, select, order) {
|
|
20175
20111
|
const scenarios = [
|
|
20176
20112
|
"ac1",
|
|
@@ -20191,13 +20127,15 @@ class TimeChart {
|
|
|
20191
20127
|
"pl4",
|
|
20192
20128
|
];
|
|
20193
20129
|
const dateSelect = `normalizeDate([date], '${dateInterval}' , '${this.locale}') as calcdate`;
|
|
20194
|
-
|
|
20130
|
+
let result;
|
|
20131
|
+
try {
|
|
20132
|
+
result = this.db.exec(`SELECT ${"p.calcdate"} ${select},
|
|
20195
20133
|
${scenarios
|
|
20196
|
-
|
|
20197
|
-
|
|
20198
|
-
|
|
20199
|
-
|
|
20200
|
-
|
|
20134
|
+
.map((scenario) => {
|
|
20135
|
+
return `SUM(${scenario} * transformOperator(operation)) as ${scenario}, COUNT(ISNULL(${scenario})) as ${scenario}_cnt`;
|
|
20136
|
+
})
|
|
20137
|
+
.join(",")}
|
|
20138
|
+
|
|
20201
20139
|
FROM (SELECT ${dateSelect} ${select},
|
|
20202
20140
|
ac1,
|
|
20203
20141
|
ac2,
|
|
@@ -20215,9 +20153,14 @@ class TimeChart {
|
|
|
20215
20153
|
pl2,
|
|
20216
20154
|
pl3,
|
|
20217
20155
|
pl4
|
|
20218
|
-
FROM
|
|
20156
|
+
FROM ${this.fromExpr}) as p
|
|
20219
20157
|
GROUP BY ${"calcdate"} ${order}
|
|
20220
|
-
ORDER BY ${"calcdate asc"}
|
|
20158
|
+
ORDER BY ${"calcdate asc"}`);
|
|
20159
|
+
}
|
|
20160
|
+
catch (e) {
|
|
20161
|
+
console.error("TimeChart: queryDataSet failed", e);
|
|
20162
|
+
return [];
|
|
20163
|
+
}
|
|
20221
20164
|
return result;
|
|
20222
20165
|
}
|
|
20223
20166
|
createDataRows(result, selectedScenarios) {
|
|
@@ -20882,12 +20825,14 @@ class TimeChart {
|
|
|
20882
20825
|
}
|
|
20883
20826
|
}
|
|
20884
20827
|
leftOuterJoinDates(result, dateInterval) {
|
|
20885
|
-
const
|
|
20886
|
-
|
|
20887
|
-
|
|
20888
|
-
|
|
20889
|
-
return
|
|
20890
|
-
}
|
|
20828
|
+
const validDates = result
|
|
20829
|
+
.map((e) => e.calcdate)
|
|
20830
|
+
.filter((d) => d != null && typeof d.isValid === "boolean" && d.isValid);
|
|
20831
|
+
if (validDates.length === 0) {
|
|
20832
|
+
return result;
|
|
20833
|
+
}
|
|
20834
|
+
const to = contextProtocol.DateTime.max(...validDates);
|
|
20835
|
+
const from = contextProtocol.DateTime.min(...validDates);
|
|
20891
20836
|
const dateRange = new withStyled.DateStringFactory().datesBetween(from, to, dateInterval, this.intervalSpanLimit);
|
|
20892
20837
|
const dateRangeEntries = new Map();
|
|
20893
20838
|
dateRange.forEach((element, idx) => {
|
|
@@ -21041,15 +20986,16 @@ class TimeChartComponentConfig {
|
|
|
21041
20986
|
/**
|
|
21042
20987
|
* Converts untyped JSON into a validated {@link TimeChartComponentConfig}.
|
|
21043
20988
|
*
|
|
21044
|
-
*
|
|
20989
|
+
* Reads from the shared alasql database for measure-scale auto-calculation.
|
|
21045
20990
|
*/
|
|
21046
20991
|
class TimeChartComponentConfigAdapter {
|
|
21047
|
-
constructor(dataRowAdapter, orderAdapter, stringAdapter, dataFormatDigitsAdapter,
|
|
20992
|
+
constructor(dataRowAdapter, orderAdapter, stringAdapter, dataFormatDigitsAdapter, db, fromExpr) {
|
|
21048
20993
|
this.dataRowAdapter = dataRowAdapter;
|
|
21049
20994
|
this.orderAdapter = orderAdapter;
|
|
21050
20995
|
this.stringAdapter = stringAdapter;
|
|
21051
20996
|
this.dataFormatDigitsAdapter = dataFormatDigitsAdapter;
|
|
21052
|
-
this.
|
|
20997
|
+
this.db = db;
|
|
20998
|
+
this.fromExpr = fromExpr;
|
|
21053
20999
|
}
|
|
21054
21000
|
adapt(data) {
|
|
21055
21001
|
const dataSet = withStyled.AdapterUtils.adaptArray(data.data, this.dataRowAdapter);
|
|
@@ -21095,7 +21041,7 @@ class TimeChartComponentConfigAdapter {
|
|
|
21095
21041
|
config.filter = data.filter;
|
|
21096
21042
|
}
|
|
21097
21043
|
if (withStyled.CompareUtil.isExisting(data.measureScale)) {
|
|
21098
|
-
config.measureScale = DataAnalyzer.calculateMeasureScale(this.
|
|
21044
|
+
config.measureScale = DataAnalyzer.calculateMeasureScale(this.db, this.fromExpr, config.scenarios, data.measureScale);
|
|
21099
21045
|
}
|
|
21100
21046
|
if (withStyled.CompareUtil.isString(data.measureUnit)) {
|
|
21101
21047
|
config.measureUnit = data.measureUnit;
|
|
@@ -21136,8 +21082,10 @@ const ibcsChartTimeCss = () => `:host{position:relative;display:inline-block}.ca
|
|
|
21136
21082
|
const IbcsChartTime = class {
|
|
21137
21083
|
constructor(hostRef) {
|
|
21138
21084
|
index.registerInstance(this, hostRef);
|
|
21139
|
-
|
|
21140
|
-
this.
|
|
21085
|
+
/** Name of the dataset (table or view in the shared alasql database). */
|
|
21086
|
+
this.tableName = "";
|
|
21087
|
+
/** Bumped by `bn-chart-time` when the dataset changes; triggers re-render. */
|
|
21088
|
+
this.dataVersion = 0;
|
|
21141
21089
|
this.scenarios = [];
|
|
21142
21090
|
this.variances = []; //["dfc_ac_neg"]
|
|
21143
21091
|
this.hideAxisLabels = false; //false
|
|
@@ -21168,6 +21116,11 @@ const IbcsChartTime = class {
|
|
|
21168
21116
|
this.dataFormatDigits = { percent: 2, decimal: 1 };
|
|
21169
21117
|
this.parentDimensions = { width: 0, height: 0 };
|
|
21170
21118
|
}
|
|
21119
|
+
getDb() {
|
|
21120
|
+
if (!this.stores)
|
|
21121
|
+
this.stores = contextProtocol.getStores(this.element);
|
|
21122
|
+
return this.stores.db.db;
|
|
21123
|
+
}
|
|
21171
21124
|
render() {
|
|
21172
21125
|
var _a, _b, _c;
|
|
21173
21126
|
if (this.chart === undefined) {
|
|
@@ -21184,7 +21137,7 @@ const IbcsChartTime = class {
|
|
|
21184
21137
|
const config = this.prepareConfig();
|
|
21185
21138
|
const styles = this.prepareStyle();
|
|
21186
21139
|
const availableWidth = this.containerWidth || 0;
|
|
21187
|
-
this.chart = new TimeChart(new IBCSRuleSet(), config, styles, availableWidth);
|
|
21140
|
+
this.chart = new TimeChart(new IBCSRuleSet(), this.getDb(), this.tableName, config, styles, availableWidth);
|
|
21188
21141
|
this.chart.setI18n(this.i18n);
|
|
21189
21142
|
this.autoFitScaling(config, styles);
|
|
21190
21143
|
this.chart.setAvailableHeight(((_a = this.parentDimensions) === null || _a === void 0 ? void 0 : _a.height) || 0);
|
|
@@ -21227,7 +21180,7 @@ const IbcsChartTime = class {
|
|
|
21227
21180
|
config.pixelPerUnit = 1;
|
|
21228
21181
|
if (autoPercent)
|
|
21229
21182
|
config.pixelPerPercentage = 50;
|
|
21230
|
-
this.chart = new TimeChart(new IBCSRuleSet(), config, styles, availableWidth);
|
|
21183
|
+
this.chart = new TimeChart(new IBCSRuleSet(), this.getDb(), this.tableName, config, styles, availableWidth);
|
|
21231
21184
|
this.chart.setI18n(this.i18n);
|
|
21232
21185
|
return;
|
|
21233
21186
|
}
|
|
@@ -21236,7 +21189,7 @@ const IbcsChartTime = class {
|
|
|
21236
21189
|
config.pixelPerUnit = 1;
|
|
21237
21190
|
if (autoPercent)
|
|
21238
21191
|
config.pixelPerPercentage = 1;
|
|
21239
|
-
this.chart = new TimeChart(new IBCSRuleSet(), config, styles, availableWidth);
|
|
21192
|
+
this.chart = new TimeChart(new IBCSRuleSet(), this.getDb(), this.tableName, config, styles, availableWidth);
|
|
21240
21193
|
this.chart.setI18n(this.i18n);
|
|
21241
21194
|
this.chart.toString();
|
|
21242
21195
|
const svgHeight = this.chart.getAllocatedCanvasHeight();
|
|
@@ -21250,7 +21203,7 @@ const IbcsChartTime = class {
|
|
|
21250
21203
|
if (autoPercent)
|
|
21251
21204
|
config.pixelPerPercentage = ratio;
|
|
21252
21205
|
// Second pass with the corrected scaling
|
|
21253
|
-
this.chart = new TimeChart(new IBCSRuleSet(), config, styles, availableWidth);
|
|
21206
|
+
this.chart = new TimeChart(new IBCSRuleSet(), this.getDb(), this.tableName, config, styles, availableWidth);
|
|
21254
21207
|
this.chart.setI18n(this.i18n);
|
|
21255
21208
|
}
|
|
21256
21209
|
async componentWillRender() {
|
|
@@ -21274,8 +21227,9 @@ const IbcsChartTime = class {
|
|
|
21274
21227
|
//}
|
|
21275
21228
|
}
|
|
21276
21229
|
prepareConfig() {
|
|
21277
|
-
|
|
21278
|
-
|
|
21230
|
+
const db = this.getDb();
|
|
21231
|
+
const fromExpr = this.tableName ? contextProtocol.buildFromExpr(this.tableName, this.filter) : "";
|
|
21232
|
+
return new TimeChartComponentConfigAdapter(new TimeChartDataRowAdapter(), new withStyled.OrderAdapter(new StringAdapter()), new StringAdapter(), new DataFormatDigitsAdapter(), db, fromExpr).adapt({
|
|
21279
21233
|
scenarios: this.scenarios,
|
|
21280
21234
|
variances: this.variances,
|
|
21281
21235
|
title: this.chartTitle,
|
|
@@ -21764,21 +21718,17 @@ const CellBarChart = (props) => {
|
|
|
21764
21718
|
};
|
|
21765
21719
|
|
|
21766
21720
|
/**
|
|
21767
|
-
* Manages the GROUP BY column list for DataQuery's SQL statements
|
|
21768
|
-
* the `transformOperator` AlaSQL custom function.
|
|
21721
|
+
* Manages the GROUP BY column list for DataQuery's SQL statements.
|
|
21769
21722
|
*
|
|
21770
|
-
* `transformOperator`
|
|
21771
|
-
*
|
|
21772
|
-
*
|
|
21723
|
+
* The `transformOperator` AlaSQL UDF (which maps `"+"`/`"-"` to +1/-1 for
|
|
21724
|
+
* sign-aware SUMs) is registered globally by `scopedDb.ts` when the shared
|
|
21725
|
+
* database is created — no per-component registration is needed here.
|
|
21773
21726
|
*
|
|
21774
21727
|
* The GROUP BY columns are composed dynamically: always category + categoryIndex,
|
|
21775
21728
|
* plus operation for OPT types, plus rowGroup/rowGroupIndex when grouping is active.
|
|
21776
21729
|
*/
|
|
21777
21730
|
class QueryGroups {
|
|
21778
21731
|
constructor(config) {
|
|
21779
|
-
alasql.fn.transformOperator = function (a) {
|
|
21780
|
-
return a === "-" ? -1 : 1;
|
|
21781
|
-
};
|
|
21782
21732
|
this.groups = [QueryColumnNames.CATEGORY, QueryColumnNames.CATEGORYINDEX];
|
|
21783
21733
|
if (TableType$2.OPT === config.type || TableType$2.OPTNOTOTAL === config.type) {
|
|
21784
21734
|
this.groups.unshift(QueryColumnNames.OPERATION);
|
|
@@ -21827,12 +21777,14 @@ class DataQuery {
|
|
|
21827
21777
|
* 8. Calculate REST columns (parent minus drilled children)
|
|
21828
21778
|
* 9. Divide absolute variances by their denominator to produce relative variances
|
|
21829
21779
|
*
|
|
21780
|
+
* @param db - The shared alasql database.
|
|
21781
|
+
* @param fromExpr - SQL FROM-clause expression naming the source table or filtered view.
|
|
21830
21782
|
* @returns Array of row-group segments; each segment is an array of result rows.
|
|
21831
21783
|
*/
|
|
21832
|
-
execute(
|
|
21833
|
-
|
|
21834
|
-
|
|
21835
|
-
|
|
21784
|
+
execute(db, fromExpr) {
|
|
21785
|
+
var _a;
|
|
21786
|
+
this.db = db;
|
|
21787
|
+
this.fromExpr = fromExpr;
|
|
21836
21788
|
const queries = [];
|
|
21837
21789
|
const sumGroupQueries = [];
|
|
21838
21790
|
const res = [];
|
|
@@ -21852,9 +21804,20 @@ class DataQuery {
|
|
|
21852
21804
|
this.hasPartOf = this.checkConfigForPartOf();
|
|
21853
21805
|
// meta defines groups and the number detail rows in each group
|
|
21854
21806
|
// Bsp: 0: Object { totalrowcnt: 7, rowgroup: "Umsatz" }
|
|
21855
|
-
|
|
21856
|
-
|
|
21857
|
-
|
|
21807
|
+
let meta;
|
|
21808
|
+
try {
|
|
21809
|
+
meta = db.exec(`SELECT COUNT(DISTINCT ${QueryColumnNames.CATEGORY}) as ${QueryColumnNames.TOTALROWCOUNT} ${groupsAggregated.length > 0 ? "," + groupsAggregated : ""}
|
|
21810
|
+
FROM ${fromExpr} ${groupsAggregated.length > 0 ? "GROUP BY " + groupsAggregated : ""}
|
|
21811
|
+
ORDER BY ${order[0]}`);
|
|
21812
|
+
}
|
|
21813
|
+
catch (e) {
|
|
21814
|
+
console.error("DataQuery: meta query failed", e);
|
|
21815
|
+
return [];
|
|
21816
|
+
}
|
|
21817
|
+
if (meta.length === 0 ||
|
|
21818
|
+
(meta.length === 1 && ((_a = meta[0][QueryColumnNames.TOTALROWCOUNT]) !== null && _a !== void 0 ? _a : 0) === 0 && groupsAggregated.length === 0)) {
|
|
21819
|
+
return [];
|
|
21820
|
+
}
|
|
21858
21821
|
// Creates DataSelection for LIST
|
|
21859
21822
|
meta.forEach((rowGroupEntry) => {
|
|
21860
21823
|
// the following variables are 'helper sections' which are used to constuct dynamicly the sql statement depending of the given config
|
|
@@ -21876,16 +21839,16 @@ class DataQuery {
|
|
|
21876
21839
|
// executes main queries
|
|
21877
21840
|
queries.forEach((query) => {
|
|
21878
21841
|
try {
|
|
21879
|
-
res.push(
|
|
21842
|
+
res.push(db.exec(query));
|
|
21880
21843
|
}
|
|
21881
21844
|
catch (err) {
|
|
21882
21845
|
console.error("DataQuery: SQL query execution failed", query, err);
|
|
21883
21846
|
}
|
|
21884
21847
|
});
|
|
21885
21848
|
this.detectNaNCells(this.config.scenarios, res);
|
|
21886
|
-
this.createThereOfDrillRows(scenarios, order,
|
|
21887
|
-
this.createPartOfDrillRows(scenarios, order, sumGroupQueries,
|
|
21888
|
-
this.createThereOfDrillColumns(this.config.categoryThereOf,
|
|
21849
|
+
this.createThereOfDrillRows(scenarios, order, res);
|
|
21850
|
+
this.createPartOfDrillRows(scenarios, order, sumGroupQueries, res);
|
|
21851
|
+
this.createThereOfDrillColumns(this.config.categoryThereOf, res);
|
|
21889
21852
|
this.calculateColumnGroupRest(res, this.config.categoryThereOf);
|
|
21890
21853
|
this.calculateRelativeVariances(res, relativeScenarios);
|
|
21891
21854
|
return res;
|
|
@@ -21924,23 +21887,20 @@ class DataQuery {
|
|
|
21924
21887
|
* of its row group sum. Queries the drill subset, then divides each scenario
|
|
21925
21888
|
* value by the corresponding group sum to produce a percentage.
|
|
21926
21889
|
*/
|
|
21927
|
-
createPartOfDrillRows(scenarios, order, sumGroupQueries,
|
|
21928
|
-
if (this.config.partOf == null ||
|
|
21929
|
-
this.config.partOf.length === 0 ||
|
|
21930
|
-
this.config.type === TableType$2.LIST ||
|
|
21931
|
-
data == null ||
|
|
21932
|
-
data.length === 0) {
|
|
21890
|
+
createPartOfDrillRows(scenarios, order, sumGroupQueries, res) {
|
|
21891
|
+
if (this.config.partOf == null || this.config.partOf.length === 0 || this.config.type === TableType$2.LIST) {
|
|
21933
21892
|
return;
|
|
21934
21893
|
}
|
|
21935
21894
|
const drillQueries = this.createPartOfQuery(scenarios, order);
|
|
21936
21895
|
let resDrill = []; // set of drill (subquery result injected into resultset)
|
|
21896
|
+
const db = this.db;
|
|
21937
21897
|
drillQueries.forEach(function (query) {
|
|
21938
|
-
resDrill.push(...
|
|
21898
|
+
resDrill.push(...db.exec(query));
|
|
21939
21899
|
});
|
|
21940
21900
|
const scenarioNames = this.exctractScenarioNames(scenarios);
|
|
21941
21901
|
const rowGroupSumResultRows = [];
|
|
21942
21902
|
sumGroupQueries.forEach(function (query) {
|
|
21943
|
-
rowGroupSumResultRows.push(...
|
|
21903
|
+
rowGroupSumResultRows.push(...db.exec(query));
|
|
21944
21904
|
});
|
|
21945
21905
|
const rowGroupSumResultMap = new Map();
|
|
21946
21906
|
rowGroupSumResultRows.forEach((row) => rowGroupSumResultMap.set(row[QueryColumnNames.ROWGROUP], row));
|
|
@@ -21969,7 +21929,7 @@ class DataQuery {
|
|
|
21969
21929
|
if (rowGroupEntry.totalRowCnt - this.config.limit > 0 && this.config.limit !== 0) {
|
|
21970
21930
|
const rest_scenarios = ", SUM(ac1) as ac1, SUM(pp1) as pp1, SUM(dpp1_ac1_pos) as dpp1_ac1_pos, SUM(drpp1_ac1_pos) as drpp1_ac1_pos, SUM(dr_pp1)";
|
|
21971
21931
|
querys.push(`SELECT ${QueryColumnNames.ROWNR}, 1 as ${QueryColumnNames.ROWGROUPINDEX} , 'ENTRY' as ${QueryColumnNames.TYPE}, 'NO_GROUP' as ${QueryColumnNames.ROWGROUP}, 'REST' as ${QueryColumnNames.CATEGORY} ${rest_scenarios} as dr_pp1 FROM` +
|
|
21972
|
-
` (SELECT ROWNUM() AS ${QueryColumnNames.ROWNR}, ${querys.length} as ${QueryColumnNames.ROWGROUPINDEX} , 'ENTRY' as ${QueryColumnNames.TYPE}, '${rowGroupEntry.rowGroup || "NO_GROUP"}' as ${QueryColumnNames.ROWGROUP}, ${groups} ${scenarios.length > 0 ? ",".concat(scenarios) : ""} FROM
|
|
21932
|
+
` (SELECT ROWNUM() AS ${QueryColumnNames.ROWNR}, ${querys.length} as ${QueryColumnNames.ROWGROUPINDEX} , 'ENTRY' as ${QueryColumnNames.TYPE}, '${rowGroupEntry.rowGroup || "NO_GROUP"}' as ${QueryColumnNames.ROWGROUP}, ${groups} ${scenarios.length > 0 ? ",".concat(scenarios) : ""} FROM ${this.fromExpr} ${queryWhereSection} GROUP BY ${groups} ORDER BY ${order[0]})` +
|
|
21973
21933
|
` t WHERE t.rowNr > ${this.config.limit}`);
|
|
21974
21934
|
}
|
|
21975
21935
|
}
|
|
@@ -21982,7 +21942,7 @@ class DataQuery {
|
|
|
21982
21942
|
'${rowGroupEntry.rowGroup || "NO_GROUP"}' as ${QueryColumnNames.ROWGROUP},
|
|
21983
21943
|
'${QueryColumnNames.CATEGORYINDEX}',
|
|
21984
21944
|
${groups} ${scenarios.length > 0 ? ",".concat(scenarios) : ""}
|
|
21985
|
-
FROM
|
|
21945
|
+
FROM ${this.fromExpr} ${queryWhereSection}
|
|
21986
21946
|
GROUP BY ${groups}
|
|
21987
21947
|
ORDER BY ${order[0]} ${queryLimitSection}`);
|
|
21988
21948
|
}
|
|
@@ -21997,7 +21957,7 @@ class DataQuery {
|
|
|
21997
21957
|
${querys.length} as ${QueryColumnNames.ROWGROUPINDEX},
|
|
21998
21958
|
'GROUPHEAD' as ${QueryColumnNames.TYPE},
|
|
21999
21959
|
'${rowGroupEntry.rowGroup}' as ${QueryColumnNames.ROWGROUP} ${groupTitle}
|
|
22000
|
-
FROM
|
|
21960
|
+
FROM ${this.fromExpr}
|
|
22001
21961
|
GROUP BY '1'`);
|
|
22002
21962
|
}
|
|
22003
21963
|
}
|
|
@@ -22014,7 +21974,7 @@ class DataQuery {
|
|
|
22014
21974
|
'${rowGroupEntry.rowGroup}' as ${QueryColumnNames.ROWGROUP},
|
|
22015
21975
|
ROWNUM() AS ${QueryColumnNames.ROWNR},
|
|
22016
21976
|
'GROUP_SUM' as ${QueryColumnNames.TYPE} ${scenariosSUMQuery.length > 0 ? ",".concat(scenariosSUMQuery) : ""}
|
|
22017
|
-
FROM
|
|
21977
|
+
FROM ${this.fromExpr}
|
|
22018
21978
|
WHERE ${QueryColumnNames.ROWGROUP} = '${rowGroupEntry.rowGroup}'
|
|
22019
21979
|
ORDER BY ${order[0]} `);
|
|
22020
21980
|
groupSumQuery.push(`SELECT ${querys.length} as ${QueryColumnNames.ROWGROUPINDEX},
|
|
@@ -22022,7 +21982,7 @@ class DataQuery {
|
|
|
22022
21982
|
'${rowGroupEntry.rowGroup}' as ${QueryColumnNames.ROWGROUP},
|
|
22023
21983
|
ROWNUM() AS ${QueryColumnNames.ROWNR},
|
|
22024
21984
|
'GROUP_SUM' as ${QueryColumnNames.TYPE} ${scenariosSUMQuery.length > 0 ? ",".concat(scenariosSUMQuery) : ""}
|
|
22025
|
-
FROM
|
|
21985
|
+
FROM ${this.fromExpr}
|
|
22026
21986
|
WHERE ${QueryColumnNames.ROWGROUP} = '${rowGroupEntry.rowGroup}'
|
|
22027
21987
|
ORDER BY ${order[0]} `);
|
|
22028
21988
|
}
|
|
@@ -22035,13 +21995,13 @@ class DataQuery {
|
|
|
22035
21995
|
'${title}' as ${QueryColumnNames.ROWGROUP},
|
|
22036
21996
|
'=' as ${QueryColumnNames.OPERATION},
|
|
22037
21997
|
'SUM' as ${QueryColumnNames.TYPE} ${scenariosSUMQuery.length > 0 ? ",".concat(scenariosSUMQuery) : ""}
|
|
22038
|
-
FROM
|
|
21998
|
+
FROM ${this.fromExpr} `);
|
|
22039
21999
|
}
|
|
22040
22000
|
sumGroupQueries.push(`SELECT ${querys.length} as ${QueryColumnNames.ROWGROUPINDEX},
|
|
22041
22001
|
'SUM_TOTAL' as ${QueryColumnNames.ROWGROUP},
|
|
22042
22002
|
'=' as ${QueryColumnNames.OPERATION},
|
|
22043
22003
|
'SUM' as ${QueryColumnNames.TYPE} ${scenariosSUMQuery.length > 0 ? ",".concat(scenariosSUMQuery) : ""}
|
|
22044
|
-
FROM
|
|
22004
|
+
FROM ${this.fromExpr} `);
|
|
22045
22005
|
}
|
|
22046
22006
|
/**
|
|
22047
22007
|
* Manually merges drill rows that AlaSQL fails to aggregate correctly.
|
|
@@ -22127,7 +22087,7 @@ class DataQuery {
|
|
|
22127
22087
|
* beneath their parent category row. Each thereof config entry produces a
|
|
22128
22088
|
* filtered/grouped SQL query whose results are spliced into the result set.
|
|
22129
22089
|
*/
|
|
22130
|
-
createThereOfDrillRows(scenarios, order,
|
|
22090
|
+
createThereOfDrillRows(scenarios, order, res) {
|
|
22131
22091
|
// adds drill rows if setup in config
|
|
22132
22092
|
// if there of is set drilldown row is displayed with absolute numbers,
|
|
22133
22093
|
// if part of is also not null a relative percenatage based of the selected basis is displayed
|
|
@@ -22163,15 +22123,14 @@ class DataQuery {
|
|
|
22163
22123
|
${QueryColumnNames.SUBCATEGORY},
|
|
22164
22124
|
${QueryColumnNames.ROWGROUP} as ${QueryColumnNames.ROWGROUP},
|
|
22165
22125
|
${scenarios}
|
|
22166
|
-
FROM
|
|
22126
|
+
FROM ${this.fromExpr}
|
|
22167
22127
|
WHERE ${fromString}
|
|
22168
22128
|
GROUP BY ${QueryColumnNames.ROWGROUP}, ${QueryColumnNames.CATEGORY}, ${QueryColumnNames.SUBCATEGORY}
|
|
22169
22129
|
ORDER BY ${order[1]}`);
|
|
22170
22130
|
});
|
|
22171
|
-
|
|
22172
|
-
//drillQueries.push(`SELECT ROWNUM() AS ${QueryColumnNames.ROWNR}, null as operation, 'DRILLELEMENT' as ${QueryColumnNames.TYPE}, ${QueryColumnNames.CATEGORY}, ${QueryColumnNames.SUBCATEGORY}, ${QueryColumnNames.ROWGROUP} as ${QueryColumnNames.ROWGROUP} , ${scenarios} FROM ? WHERE ${fromString} GROUP BY ${QueryColumnNames.ROWGROUP}, ${QueryColumnNames.CATEGORY}, ${QueryColumnNames.SUBCATEGORY} ORDER BY ${order[1]}`);
|
|
22131
|
+
const db = this.db;
|
|
22173
22132
|
drillQueries.forEach(function (query) {
|
|
22174
|
-
resDrill.push(...
|
|
22133
|
+
resDrill.push(...db.exec(query));
|
|
22175
22134
|
});
|
|
22176
22135
|
this.injectDrillRowsToResultRows(resDrill, res);
|
|
22177
22136
|
}
|
|
@@ -22355,7 +22314,7 @@ class DataQuery {
|
|
|
22355
22314
|
${QueryColumnNames.CATEGORY},
|
|
22356
22315
|
${groupName},
|
|
22357
22316
|
${scenarios}
|
|
22358
|
-
FROM
|
|
22317
|
+
FROM ${this.fromExpr}
|
|
22359
22318
|
WHERE ${fromString}
|
|
22360
22319
|
GROUP BY ${QueryColumnNames.ROWGROUP}, ${QueryColumnNames.CATEGORY}, ${QueryColumnNames.TYPE}
|
|
22361
22320
|
ORDER BY ${order[1]}`);
|
|
@@ -22376,12 +22335,13 @@ class DataQuery {
|
|
|
22376
22335
|
* result rows using the `"##"` separator convention: `scenario##columnGroup` or
|
|
22377
22336
|
* `scenario##columnGroup##columnSubGroup`.
|
|
22378
22337
|
*/
|
|
22379
|
-
createThereOfDrillColumns(categoryThereOf,
|
|
22338
|
+
createThereOfDrillColumns(categoryThereOf, res) {
|
|
22380
22339
|
if (categoryThereOf == null || categoryThereOf.size === 0) {
|
|
22381
22340
|
return;
|
|
22382
22341
|
}
|
|
22383
22342
|
const drillQueries = [];
|
|
22384
22343
|
const resDrill = [];
|
|
22344
|
+
const fromExpr = this.fromExpr;
|
|
22385
22345
|
categoryThereOf.forEach((value, key) => {
|
|
22386
22346
|
let whereClause = "1 <> 1 ";
|
|
22387
22347
|
value.forEach((drillColumn) => {
|
|
@@ -22394,7 +22354,7 @@ class DataQuery {
|
|
|
22394
22354
|
columnGroup,
|
|
22395
22355
|
'${key}' as scenario,
|
|
22396
22356
|
sum(${key} * transformOperator(operation)) as val
|
|
22397
|
-
FROM
|
|
22357
|
+
FROM ${fromExpr}
|
|
22398
22358
|
WHERE ${whereClause}
|
|
22399
22359
|
GROUP BY rowlevel, rowGroup, category, columnGroup, scenario`);
|
|
22400
22360
|
drillQueries.push(`SELECT 'ENTRY' as rowlevel,
|
|
@@ -22405,7 +22365,7 @@ class DataQuery {
|
|
|
22405
22365
|
columnSubGroup,
|
|
22406
22366
|
'${key}' as scenario,
|
|
22407
22367
|
sum(${key} * transformOperator(operation)) as val
|
|
22408
|
-
FROM
|
|
22368
|
+
FROM ${fromExpr}
|
|
22409
22369
|
WHERE ${whereClause}
|
|
22410
22370
|
GROUP BY rowlevel, rowGroup, category, columnGroup, columnSubGroup, scenario`);
|
|
22411
22371
|
drillQueries.push(`SELECT 'DRILLELEMENT' as rowlevel,
|
|
@@ -22416,7 +22376,7 @@ class DataQuery {
|
|
|
22416
22376
|
columnGroup,
|
|
22417
22377
|
'${key}' as scenario,
|
|
22418
22378
|
sum(${key} * transformOperator(operation)) as val
|
|
22419
|
-
FROM
|
|
22379
|
+
FROM ${fromExpr}
|
|
22420
22380
|
WHERE ${whereClause}
|
|
22421
22381
|
GROUP BY rowlevel, rowGroup, category, subCategory, columnGroup, scenario`);
|
|
22422
22382
|
drillQueries.push(`SELECT 'DRILLELEMENT' as rowlevel,
|
|
@@ -22428,7 +22388,7 @@ class DataQuery {
|
|
|
22428
22388
|
columnSubGroup,
|
|
22429
22389
|
'${key}' as scenario,
|
|
22430
22390
|
sum(${key} * transformOperator(operation)) as val
|
|
22431
|
-
FROM
|
|
22391
|
+
FROM ${fromExpr}
|
|
22432
22392
|
WHERE ${whereClause}
|
|
22433
22393
|
GROUP BY rowlevel, rowGroup, category, subCategory, columnGroup, columnSubGroup, scenario`);
|
|
22434
22394
|
drillQueries.push(`SELECT 'GROUP_SUM' as rowlevel,
|
|
@@ -22437,7 +22397,7 @@ class DataQuery {
|
|
|
22437
22397
|
columnGroup,
|
|
22438
22398
|
'${key}' as scenario,
|
|
22439
22399
|
sum(${key} * transformOperator(operation)) as val
|
|
22440
|
-
FROM
|
|
22400
|
+
FROM ${fromExpr}
|
|
22441
22401
|
WHERE ${whereClause}
|
|
22442
22402
|
GROUP BY rowlevel, rowGroup, columnGroup, scenario`);
|
|
22443
22403
|
drillQueries.push(`SELECT 'GROUP_SUM' as rowlevel,
|
|
@@ -22447,7 +22407,7 @@ class DataQuery {
|
|
|
22447
22407
|
columnSubGroup,
|
|
22448
22408
|
'${key}' as scenario,
|
|
22449
22409
|
sum(${key} * transformOperator(operation)) as val
|
|
22450
|
-
FROM
|
|
22410
|
+
FROM ${fromExpr}
|
|
22451
22411
|
WHERE ${whereClause}
|
|
22452
22412
|
GROUP BY rowlevel, rowGroup, columnGroup, columnSubGroup, scenario`);
|
|
22453
22413
|
drillQueries.push(`SELECT 'SUM' as rowlevel,
|
|
@@ -22455,7 +22415,7 @@ class DataQuery {
|
|
|
22455
22415
|
columnGroup,
|
|
22456
22416
|
'${key}' as scenario,
|
|
22457
22417
|
sum(${key} * transformOperator(operation)) as val
|
|
22458
|
-
FROM
|
|
22418
|
+
FROM ${fromExpr}
|
|
22459
22419
|
WHERE ${whereClause}
|
|
22460
22420
|
GROUP BY rowlevel, columnGroup, scenario`);
|
|
22461
22421
|
drillQueries.push(`SELECT 'SUM' as rowlevel,
|
|
@@ -22464,12 +22424,12 @@ class DataQuery {
|
|
|
22464
22424
|
columnSubGroup,
|
|
22465
22425
|
'${key}' as scenario,
|
|
22466
22426
|
sum(${key} * transformOperator(operation)) as val
|
|
22467
|
-
FROM
|
|
22427
|
+
FROM ${fromExpr}
|
|
22468
22428
|
WHERE ${whereClause}
|
|
22469
22429
|
GROUP BY rowlevel, columnGroup, columnSubGroup, scenario`);
|
|
22470
22430
|
});
|
|
22471
22431
|
for (const query of drillQueries) {
|
|
22472
|
-
resDrill.push(...
|
|
22432
|
+
resDrill.push(...this.db.exec(query));
|
|
22473
22433
|
}
|
|
22474
22434
|
this.injectDrillColumnsToResultRows(resDrill, res);
|
|
22475
22435
|
}
|
|
@@ -22633,10 +22593,10 @@ class TableDataSetFactory {
|
|
|
22633
22593
|
* eachh row consists of data columns and 'spacer' columns which are needed to seperate
|
|
22634
22594
|
* the columns correctyl (IBCS style)
|
|
22635
22595
|
*/
|
|
22636
|
-
createBodyRows(config, i18n,
|
|
22596
|
+
createBodyRows(config, i18n, db, fromExpr) {
|
|
22637
22597
|
const bodyRows = [];
|
|
22638
22598
|
let iGroupIndex = -1; // index used in detailRow JSON to count the current group
|
|
22639
|
-
const queryData = new DataQuery(config, i18n).execute(
|
|
22599
|
+
const queryData = new DataQuery(config, i18n).execute(db, fromExpr); // collection of all query results
|
|
22640
22600
|
// Calculate column statistics for bar columns
|
|
22641
22601
|
const columnStatsMap = this.calculateColumnStatistics(queryData, config.barColumns);
|
|
22642
22602
|
for (const groupData of queryData) {
|
|
@@ -22943,18 +22903,20 @@ class TableDataSetFactory {
|
|
|
22943
22903
|
*/
|
|
22944
22904
|
class Table {
|
|
22945
22905
|
/**
|
|
22946
|
-
* Initialises all Variables for the DataSet, created by the factory
|
|
22947
|
-
*
|
|
22906
|
+
* Initialises all Variables for the DataSet, created by the factory.
|
|
22907
|
+
* Reads data directly from the shared alasql database (named by `tableName`).
|
|
22948
22908
|
*/
|
|
22949
|
-
constructor(ruleSet,
|
|
22950
|
-
this.
|
|
22909
|
+
constructor(ruleSet, db, tableName, config) {
|
|
22910
|
+
this.fromExpr = "";
|
|
22911
|
+
this.rowCount = 0;
|
|
22951
22912
|
this.headerRows = [];
|
|
22952
22913
|
this.bodyRows = [];
|
|
22953
22914
|
this.ruleSet = ruleSet || new IBCSRuleSet();
|
|
22915
|
+
this.db = db;
|
|
22954
22916
|
this.dataSetFactory = new TableDataSetFactory();
|
|
22955
22917
|
this.config = this.initConfig(config);
|
|
22956
22918
|
this.i18n = this.initI18n(new Map());
|
|
22957
|
-
this.
|
|
22919
|
+
this.setSource(tableName, config.filter);
|
|
22958
22920
|
this.state = FactoryState$3.DIRTY;
|
|
22959
22921
|
}
|
|
22960
22922
|
/**
|
|
@@ -23031,31 +22993,35 @@ class Table {
|
|
|
23031
22993
|
setConfig(config) {
|
|
23032
22994
|
this.config = this.initConfig(config);
|
|
23033
22995
|
}
|
|
23034
|
-
|
|
23035
|
-
|
|
22996
|
+
setSource(tableName, filter) {
|
|
22997
|
+
var _a, _b;
|
|
22998
|
+
if (!tableName) {
|
|
22999
|
+
this.fromExpr = "";
|
|
23000
|
+
this.rowCount = 0;
|
|
23036
23001
|
return;
|
|
23037
23002
|
}
|
|
23038
|
-
|
|
23039
|
-
|
|
23040
|
-
|
|
23041
|
-
|
|
23042
|
-
catch (e) {
|
|
23043
|
-
console.error("Table: filter query failed, using unfiltered data", filter, e);
|
|
23044
|
-
this.data = data;
|
|
23045
|
-
}
|
|
23003
|
+
this.fromExpr = contextProtocol.buildFromExpr(tableName, filter);
|
|
23004
|
+
try {
|
|
23005
|
+
const r = this.db.exec(`SELECT COUNT(*) AS cnt FROM ${this.fromExpr}`);
|
|
23006
|
+
this.rowCount = ((_b = (_a = r[0]) === null || _a === void 0 ? void 0 : _a.cnt) !== null && _b !== void 0 ? _b : 0);
|
|
23046
23007
|
}
|
|
23047
|
-
|
|
23048
|
-
|
|
23008
|
+
catch (_e) {
|
|
23009
|
+
// Table may not exist yet (e.g. datasource hasn't loaded). Treat as empty.
|
|
23010
|
+
this.rowCount = 0;
|
|
23049
23011
|
}
|
|
23050
23012
|
const normalizedScenarios = this.normalizeScenarios(this.config.scenarios, this.config.categoryThereOf, this.config.sortOrder);
|
|
23051
23013
|
this.headerRows = this.dataSetFactory.createHeader(this.config.type, normalizedScenarios, this.i18n, this.config.measureScale, this.config.measureUnit, this.config.showMeasureScale);
|
|
23052
|
-
this.bodyRows =
|
|
23014
|
+
this.bodyRows =
|
|
23015
|
+
this.rowCount === 0 ? [] : this.dataSetFactory.createBodyRows(this.config, this.i18n, this.db, this.fromExpr);
|
|
23053
23016
|
this.state = FactoryState$3.UP_TO_DATE;
|
|
23054
23017
|
}
|
|
23055
23018
|
update() {
|
|
23056
23019
|
const normalizedScenarios = this.normalizeScenarios(this.config.scenarios, this.config.categoryThereOf, this.config.sortOrder);
|
|
23057
23020
|
this.headerRows = this.dataSetFactory.createHeader(this.config.type, normalizedScenarios, this.i18n, this.config.measureScale, this.config.measureUnit, this.config.showMeasureScale);
|
|
23058
|
-
this.bodyRows =
|
|
23021
|
+
this.bodyRows =
|
|
23022
|
+
this.rowCount === 0 || !this.fromExpr
|
|
23023
|
+
? []
|
|
23024
|
+
: this.dataSetFactory.createBodyRows(this.config, this.i18n, this.db, this.fromExpr);
|
|
23059
23025
|
this.state = FactoryState$3.UP_TO_DATE;
|
|
23060
23026
|
}
|
|
23061
23027
|
getHeader() {
|
|
@@ -23103,7 +23069,7 @@ class Table {
|
|
|
23103
23069
|
return normalizedScenarios;
|
|
23104
23070
|
}
|
|
23105
23071
|
hasNoData() {
|
|
23106
|
-
return this.
|
|
23072
|
+
return this.rowCount === 0;
|
|
23107
23073
|
}
|
|
23108
23074
|
}
|
|
23109
23075
|
|
|
@@ -23161,14 +23127,15 @@ class TableComponentConfig {
|
|
|
23161
23127
|
/**
|
|
23162
23128
|
* Converts untyped JSON into a validated {@link TableComponentConfig}.
|
|
23163
23129
|
*
|
|
23164
|
-
*
|
|
23130
|
+
* Reads from the shared alasql database for measure-scale auto-calculation when `measureScale` is set to "auto".
|
|
23165
23131
|
*/
|
|
23166
23132
|
class TableComponentConfigAdapter {
|
|
23167
|
-
constructor(tableDrillGroupAdapter, stringAdapter, orderAdapter,
|
|
23133
|
+
constructor(tableDrillGroupAdapter, stringAdapter, orderAdapter, db, fromExpr) {
|
|
23168
23134
|
this.tableDrillGroupAdapter = tableDrillGroupAdapter;
|
|
23169
23135
|
this.stringAdapter = stringAdapter;
|
|
23170
23136
|
this.orderAdapter = orderAdapter;
|
|
23171
|
-
this.
|
|
23137
|
+
this.db = db;
|
|
23138
|
+
this.fromExpr = fromExpr;
|
|
23172
23139
|
}
|
|
23173
23140
|
adapt(data) {
|
|
23174
23141
|
const config = new TableComponentConfig();
|
|
@@ -23215,7 +23182,7 @@ class TableComponentConfigAdapter {
|
|
|
23215
23182
|
config.categoryWidth = data.categoryWidth;
|
|
23216
23183
|
}
|
|
23217
23184
|
if (withStyled.CompareUtil.isExisting(data.measureScale)) {
|
|
23218
|
-
config.measureScale = DataAnalyzer.calculateMeasureScale(this.
|
|
23185
|
+
config.measureScale = DataAnalyzer.calculateMeasureScale(this.db, this.fromExpr, config.scenarios, data.measureScale);
|
|
23219
23186
|
}
|
|
23220
23187
|
if (withStyled.CompareUtil.isExisting(data.measureType)) {
|
|
23221
23188
|
config.measureType = data.measureType;
|
|
@@ -23278,146 +23245,21 @@ class TableDrillGroupAdapter {
|
|
|
23278
23245
|
}
|
|
23279
23246
|
}
|
|
23280
23247
|
|
|
23281
|
-
// import { IAdapter } from "../../../../utils/helper/IAdapter";
|
|
23282
|
-
// import { CompareUtil } from "../../../../utils/helper/CompareUtil";
|
|
23283
|
-
/**
|
|
23284
|
-
* IBCS-compliant data row for table visualizations.
|
|
23285
|
-
*
|
|
23286
|
-
* Represents a single record with a three-level row hierarchy (rowGroup > category > subCategory),
|
|
23287
|
-
* a two-level column hierarchy (columnGroup > columnSubGroup), and 16 scenario value slots across
|
|
23288
|
-
* four scenario types: actual (ac1-4), previous period (pp1-4), forecast (fc1-4), and plan (pl1-4).
|
|
23289
|
-
*
|
|
23290
|
-
* The {@link operation} field controls how this row participates in aggregations:
|
|
23291
|
-
* `"+"` adds and `"-"` subtracts the row's values. This is converted to a numeric multiplier
|
|
23292
|
-
* by `transformOperator()` in the SQL query engine.
|
|
23293
|
-
*/
|
|
23294
|
-
class TableDataRow {
|
|
23295
|
-
constructor() {
|
|
23296
|
-
/** Aggregation operator: `"+"` adds values, `"-"` subtracts them in SUM/OPT roll-ups. */
|
|
23297
|
-
this.operation = "+";
|
|
23298
|
-
}
|
|
23299
|
-
addRowGroup(name, index) {
|
|
23300
|
-
this.rowGroup = name;
|
|
23301
|
-
this.rowGroupIndex = index;
|
|
23302
|
-
}
|
|
23303
|
-
addCategory(name, index) {
|
|
23304
|
-
this.category = name;
|
|
23305
|
-
this.categoryIndex = index;
|
|
23306
|
-
}
|
|
23307
|
-
addSubCategory(name, index) {
|
|
23308
|
-
this.subCategory = name;
|
|
23309
|
-
this.subCategoryIndex = index;
|
|
23310
|
-
}
|
|
23311
|
-
addColumnGroup(name, index) {
|
|
23312
|
-
this.columnGroup = name;
|
|
23313
|
-
this.columnGroupIndex = index;
|
|
23314
|
-
}
|
|
23315
|
-
addSubColumnGroup(name, index) {
|
|
23316
|
-
this.columnSubGroup = name;
|
|
23317
|
-
this.columnSubGroupIndex = index;
|
|
23318
|
-
}
|
|
23319
|
-
}
|
|
23320
|
-
/**
|
|
23321
|
-
* Converts untyped JSON records into validated {@link TableDataRow} instances.
|
|
23322
|
-
*
|
|
23323
|
-
* Only assigns fields that pass type validation via {@link CompareUtil}, so malformed
|
|
23324
|
-
* input data is silently dropped and defaults are preserved.
|
|
23325
|
-
*/
|
|
23326
|
-
class TableDataRowAdapter {
|
|
23327
|
-
constructor() { }
|
|
23328
|
-
adapt(data) {
|
|
23329
|
-
const dataRow = new TableDataRow();
|
|
23330
|
-
if (withStyled.CompareUtil.isOperator(data.operation)) {
|
|
23331
|
-
dataRow.operation = data.operation;
|
|
23332
|
-
}
|
|
23333
|
-
if (withStyled.CompareUtil.isNumber(data.rowGroupIndex) && withStyled.CompareUtil.isString(data.rowGroup)) {
|
|
23334
|
-
dataRow.addRowGroup(data.rowGroup, data.rowGroupIndex);
|
|
23335
|
-
}
|
|
23336
|
-
if (withStyled.CompareUtil.isNumber(data.categoryIndex) && withStyled.CompareUtil.isString(data.category)) {
|
|
23337
|
-
dataRow.addCategory(data.category, data.categoryIndex);
|
|
23338
|
-
}
|
|
23339
|
-
if (withStyled.CompareUtil.isNumber(data.subCategoryIndex) && withStyled.CompareUtil.isString(data.subCategory)) {
|
|
23340
|
-
dataRow.addSubCategory(data.subCategory, data.subCategoryIndex);
|
|
23341
|
-
}
|
|
23342
|
-
if (withStyled.CompareUtil.isNumber(data.columnGroupIndex) && withStyled.CompareUtil.isString(data.columnGroup)) {
|
|
23343
|
-
dataRow.addColumnGroup(data.columnGroup, data.columnGroupIndex);
|
|
23344
|
-
}
|
|
23345
|
-
if (withStyled.CompareUtil.isNumber(data.columnSubGroupIndex) && withStyled.CompareUtil.isString(data.columnSubGroup)) {
|
|
23346
|
-
dataRow.addSubColumnGroup(data.columnSubGroup, data.columnSubGroupIndex);
|
|
23347
|
-
}
|
|
23348
|
-
this.setActualValues(data, dataRow);
|
|
23349
|
-
this.setPlanValues(data, dataRow);
|
|
23350
|
-
this.setPreviousPeriodValues(data, dataRow);
|
|
23351
|
-
this.setForecastValues(data, dataRow);
|
|
23352
|
-
return dataRow;
|
|
23353
|
-
}
|
|
23354
|
-
default() {
|
|
23355
|
-
return new TableDataRow();
|
|
23356
|
-
}
|
|
23357
|
-
setActualValues(data, dataRow) {
|
|
23358
|
-
if (withStyled.CompareUtil.isNumber(data.ac1)) {
|
|
23359
|
-
dataRow.ac1 = data.ac1;
|
|
23360
|
-
}
|
|
23361
|
-
if (withStyled.CompareUtil.isNumber(data.ac2)) {
|
|
23362
|
-
dataRow.ac2 = data.ac2;
|
|
23363
|
-
}
|
|
23364
|
-
if (withStyled.CompareUtil.isNumber(data.ac3)) {
|
|
23365
|
-
dataRow.ac3 = data.ac3;
|
|
23366
|
-
}
|
|
23367
|
-
if (withStyled.CompareUtil.isNumber(data.ac4)) {
|
|
23368
|
-
dataRow.ac4 = data.ac4;
|
|
23369
|
-
}
|
|
23370
|
-
}
|
|
23371
|
-
setPlanValues(data, dataRow) {
|
|
23372
|
-
if (withStyled.CompareUtil.isNumber(data.pp1)) {
|
|
23373
|
-
dataRow.pp1 = data.pp1;
|
|
23374
|
-
}
|
|
23375
|
-
if (withStyled.CompareUtil.isNumber(data.pp2)) {
|
|
23376
|
-
dataRow.pp2 = data.pp2;
|
|
23377
|
-
}
|
|
23378
|
-
if (withStyled.CompareUtil.isNumber(data.pp3)) {
|
|
23379
|
-
dataRow.pp3 = data.pp3;
|
|
23380
|
-
}
|
|
23381
|
-
if (withStyled.CompareUtil.isNumber(data.pp4)) {
|
|
23382
|
-
dataRow.pp4 = data.pp4;
|
|
23383
|
-
}
|
|
23384
|
-
}
|
|
23385
|
-
setPreviousPeriodValues(data, dataRow) {
|
|
23386
|
-
if (withStyled.CompareUtil.isNumber(data.pl1)) {
|
|
23387
|
-
dataRow.pl1 = data.pl1;
|
|
23388
|
-
}
|
|
23389
|
-
if (withStyled.CompareUtil.isNumber(data.pl2)) {
|
|
23390
|
-
dataRow.pl2 = data.pl2;
|
|
23391
|
-
}
|
|
23392
|
-
if (withStyled.CompareUtil.isNumber(data.pl3)) {
|
|
23393
|
-
dataRow.pl3 = data.pl3;
|
|
23394
|
-
}
|
|
23395
|
-
if (withStyled.CompareUtil.isNumber(data.pl4)) {
|
|
23396
|
-
dataRow.pl4 = data.pl4;
|
|
23397
|
-
}
|
|
23398
|
-
}
|
|
23399
|
-
setForecastValues(data, dataRow) {
|
|
23400
|
-
if (withStyled.CompareUtil.isNumber(data.fc1)) {
|
|
23401
|
-
dataRow.fc1 = data.fc1;
|
|
23402
|
-
}
|
|
23403
|
-
if (withStyled.CompareUtil.isNumber(data.fc2)) {
|
|
23404
|
-
dataRow.fc2 = data.fc2;
|
|
23405
|
-
}
|
|
23406
|
-
if (withStyled.CompareUtil.isNumber(data.fc3)) {
|
|
23407
|
-
dataRow.fc3 = data.fc3;
|
|
23408
|
-
}
|
|
23409
|
-
if (withStyled.CompareUtil.isNumber(data.fc4)) {
|
|
23410
|
-
dataRow.fc4 = data.fc4;
|
|
23411
|
-
}
|
|
23412
|
-
}
|
|
23413
|
-
}
|
|
23414
|
-
|
|
23415
23248
|
const ibcsTableCss = () => `:host{position:relative;display:inline-block}table{background-color:var(--bn-font-background, white);font-size:var(--bn-font-size, 1em);color:var(--bn-font-color, black);font-family:var(--bn-font-family, "Noto Sans", "Helvetica Neue", Helvetica, sans-serif);border-spacing:0.3em 0}thead{border-style:none}tr:first-child td{border-top:none;padding-top:0.5em}td.ac1,td.ac2,td.ac3,td.ac4,td.pp1,td.pp2,td.pp3,td.pp4,td.pl1,td.pl2,td.pl3,td.pl4,td.fc1,td.fc2,td.fc3,td.fc4,td.share,td.variance,td.pos_pos,td.pos_neg,td.neg_pos,td.neg_neg,td.pos_neutral,td.neg_neutral{text-align:right}.category-w100{min-width:100em;max-width:100em}.category-w50{min-width:50em;max-width:50em}.category-w25{min-width:25em;max-width:25em}.category-w20{min-width:20em;max-width:20em}.category-w15{min-width:15em;max-width:15em}.category-w10{min-width:10em;max-width:10em}.category-w5{min-width:5em;max-width:5em}.prefix-second{color:transparent;font-style:normal}.prefix-first{font-style:normal}th{border-bottom:0.1em solid black;text-align:right;font-weight:normal;vertical-align:text-top}td.columnGroup,th.columnGroup{font-size:0.6em}td.columnSubGroup,th.columnSubGroup{font-size:0.6em;border-spacing:0em 0;font-style:italic}td.base,th.base{font-style:normal}th.ofit,td.ofit,tr.ofit,th.partof,td.partof,tr.partof{font-size:0.6em;font-style:italic}td.ofit,td.partof{font-size:0.6em;font-style:italic}th.ofit td,tr.ofit td,th.partof td,tr.partof td{border-top:0em solid black;padding-left:1em}th.ofit share,th.partof share,tr.share td{border-top:0em solid black}th.share,tr.share,td.share{font-size:0.6em;font-style:italic}th.filler{border-bottom:0em solid black;text-align:right}td.filler{border-top:0em none !important;border-bottom:0em none;text-align:right}th.group{text-align:center;border-spacing:1em 0}th.headerlabel{border-bottom:0em none black;padding-bottom:0em}td.variance:after{content:"%"}td.relative_variance{font-style:italic}td.percent{font-style:italic;text-align:right}td.decimal{text-align:right}td.pos_pos{color:#008f96}td.neg_pos{color:#ff0000}td.pos_neg{color:#ff0000}td.neg_neg{color:#008f96}td.pos_pos:before{content:"+"}td.pos_neg:before{content:"+"}td.pos_neu:before{content:"+"}th.ac1,th.ac2,th.ac3,th.ac4{padding-top:0em;border-bottom:0.3em solid black}th.pp1,th.pp2,th.pp3,th.pp4{padding-top:0em;border-bottom:0.3em solid grey}th.pl1,th.pl2,th.pl3,th.pl4{padding-top:0em;border-bottom:0.3em double black}th.fc1,th.fc2,th.fc3,th.fc4{border-bottom:0.3em solid;border-image:repeating-linear-gradient(-45deg, white, white, black, white, white 0.3em) 2}td.colsum{font-weight:bold}th.colsum{padding-top:0em;font-weight:bold}tr.sum td{border-top:0.1em solid black;font-weight:bold;padding-bottom:0.5em}tr.groupheader td{border-top:0em dotted #ddd;padding-top:0.5em;font-weight:bold;font-style:italic}tr.begingroup td{border-top:0em dotted #ddd;padding-top:0.5em}th.begin-group{padding-left:0.75em}th.end-group{padding-left:0.75em}td{box-sizing:border-box;-webkit-box-sizing:border-box;border-top:0.1em dashed #ddd;padding-left:0.5em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.table-footer{font-size:0.6em}.cell-bar-chart{display:inline-block;vertical-align:middle}.bar-chart-empty{color:#999}td:has(.cell-bar-chart){padding:0 0.25em;vertical-align:middle}td:has(.cell-bar-chart).pos_pos:before,td:has(.cell-bar-chart).pos_neg:before,td:has(.cell-bar-chart).pos_neu:before{content:none}td:has(.cell-bar-chart).variance:after{content:none}`;
|
|
23416
23249
|
|
|
23417
23250
|
const IbcsTable = class {
|
|
23418
23251
|
constructor(hostRef) {
|
|
23419
23252
|
index.registerInstance(this, hostRef);
|
|
23420
|
-
|
|
23253
|
+
/**
|
|
23254
|
+
* Name of the dataset (a table or view in the shared alasql database). The
|
|
23255
|
+
* inner `Table` helper queries it directly — no array copy.
|
|
23256
|
+
*/
|
|
23257
|
+
this.tableName = "";
|
|
23258
|
+
/**
|
|
23259
|
+
* Bumped by the outer `bn-table` whenever the dataset's data changes. Triggers
|
|
23260
|
+
* a re-render via Stencil's prop-change detection.
|
|
23261
|
+
*/
|
|
23262
|
+
this.dataVersion = 0;
|
|
23421
23263
|
this.tableTitle = "SUM_TOTAL";
|
|
23422
23264
|
this.scenarios = [];
|
|
23423
23265
|
this.scenariosDataFormat = withStyled.DataFormat.DECIMAL;
|
|
@@ -23463,15 +23305,22 @@ const IbcsTable = class {
|
|
|
23463
23305
|
return index.h(index.Host, null, helper());
|
|
23464
23306
|
}
|
|
23465
23307
|
componentWillRender() {
|
|
23466
|
-
|
|
23467
|
-
|
|
23308
|
+
if (!this.stores)
|
|
23309
|
+
this.stores = contextProtocol.getStores(this.element);
|
|
23310
|
+
const db = this.stores.db.db;
|
|
23311
|
+
const config = this.prepareConfig(db);
|
|
23468
23312
|
this.componentDataFormatDigits = new DataFormatDigitsAdapter().adapt(this.dataFormatDigits);
|
|
23469
|
-
this.table = new Table(new IBCSRuleSet(),
|
|
23313
|
+
this.table = new Table(new IBCSRuleSet(), db, this.tableName, config);
|
|
23470
23314
|
this.table.setI18n(this.i18n);
|
|
23471
23315
|
this.barChartStyles = this.prepareBarChartStyles();
|
|
23472
23316
|
}
|
|
23473
|
-
prepareConfig() {
|
|
23474
|
-
const
|
|
23317
|
+
prepareConfig(db) {
|
|
23318
|
+
const fromExpr = this.tableName
|
|
23319
|
+
? this.filter && this.filter.length > 0
|
|
23320
|
+
? `(SELECT * FROM \`${this.tableName}\` WHERE ${this.filter}) AS __src`
|
|
23321
|
+
: `\`${this.tableName}\``
|
|
23322
|
+
: "";
|
|
23323
|
+
const config = new TableComponentConfigAdapter(new TableDrillGroupAdapter(), new StringAdapter(), new withStyled.OrderAdapter(new StringAdapter()), db, fromExpr).adapt({
|
|
23475
23324
|
title: this.tableTitle,
|
|
23476
23325
|
scenarios: this.scenarios,
|
|
23477
23326
|
scenariosUnitType: this.scenariosDataFormat,
|
|
@@ -23494,9 +23343,6 @@ const IbcsTable = class {
|
|
|
23494
23343
|
});
|
|
23495
23344
|
return config;
|
|
23496
23345
|
}
|
|
23497
|
-
prepareData() {
|
|
23498
|
-
return withStyled.AdapterUtils.adaptArray(this.data, new TableDataRowAdapter());
|
|
23499
|
-
}
|
|
23500
23346
|
/**
|
|
23501
23347
|
* Prepares bar chart styles from componentStyle store.
|
|
23502
23348
|
* Uses the same variance styles as bn-chart-time for consistency.
|
|
@@ -23880,7 +23726,7 @@ class MeasureEntryAdapter {
|
|
|
23880
23726
|
}
|
|
23881
23727
|
|
|
23882
23728
|
class TimePeriod {
|
|
23883
|
-
constructor(start =
|
|
23729
|
+
constructor(start = contextProtocol.DateTime.now(), end = contextProtocol.DateTime.now(), format = withStyled.DateDistance.AUTO, link = withStyled.DateLink.AUTO) {
|
|
23884
23730
|
this.start = start;
|
|
23885
23731
|
this.end = end;
|
|
23886
23732
|
this.format = format;
|